Currently, I have my cloudbuild setup to do:
- id: "apply migrations"
name: "gcr.io/google-appengine/exec-wrapper"
entrypoint: "bash"
args:
[
"-c",
"/buildstep/execute.sh -i gcr.io/${PROJECT_ID}/${_SERVICE_NAME} -s ${PROJECT_ID}:${_REGION}:${_INSTANCE_NAME} -e RAILS_MASTER_KEY=$$RAILS_KEY -- bundle exec rails db:migrate",
]
secretEnv: ["RAILS_KEY"]
When building, I get the following error during the migration step:
Caused by:
Step #3 - "apply migrations": PG::ConnectionBad: could not connect to server: No such file or directory
Step #3 - "apply migrations": Is the server running locally and accepting
Step #3 - "apply migrations": connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
What could cause this error to occur? I am unable to find anything about the subject.