I am currently trying to host a typescript/sequelize project in Google cloud build. I am connecting through a unix socket and cloud sql proxy. The app is deployed and a test running "sequelize.authenticate()" seems to be working. Migrations to localhost seems to be working aswell.
I have written a cloud build trigger that does the following: -builds a simple docker image -pushes the simple docker image -npm install -downloads the cloud_sql_proxy -initiates the cloud_sql_proxy
the next step would be to migrate a simple table to my gcloud database.
please check out my drawing for further details: https://excalidraw.com/#json=LnvpSjngbk7h1F0RzBgUP,HPwtVWgh-sFgrmvfU9JK0A
If i try to run "npx sequelize-cli db:migrate" gcloud gives the following message: [31mERROR:[39m connect ENOENT /cloudsql/xxxxxxx/.s.PGSQL.5432
but if i replace the command with npx sequelize-cli --version, it simply prints out the version and moves on with the rest of the trigger operations.