I have two Cloud Run projects based on Ruby on Rails 6
Details of deployments on gcr-uat:
I want to deploy gcr-prod based on image built from gcr-uat. Env var set to RAIL_ENV=production. during deployment I will choose deploy from other project and select image from other project on Artifact Registry. All the permission are granted to gcr-prod to use the image from gcr-uat.
On successful deployment by right RoR will create db_production database, but its created db_development and db_test databases.
I need to know any config need to be changed on Ruby on Rails side or how the Cloud Build do the build process, is it same as how docker build. Thank you.
Hi @ershadahamed,
Welcome to Google Cloud Community!
You can refer to this document to see details about Deploying to Cloud Run using Cloud Build and check this page regarding Build container images.
You can also get in touch with Google Cloud Support to get the right support you need.