Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

What is your workflow to deploy a new cloud run revision

My workflow involves

  1. Manually placing any static environment variables into a secret
  2. Executing a bash script which does the following:
    1. Apply terraform and get outputs
    2. Build my docker container in cloud build
    3. Deploy a new revision via `gcloud run`, passing terraform outputs as environment variables
    4. Grab the cloud run service urls
    5. Run another scripts that deploys/updates cloud schedules using the service urls from 4.

My solution works for me but is bespoke. Is there a tool that combines terraform with the build/deploy steps? Can terraform be used to deploy revisions? 

What does your workflow look like?

 

 

1 1 1,438
1 REPLY 1

Greetings @stewartbracken!

Welcome to the Google Cloud Community!

You can refer to this documentation on deploying a new revision of an existing service in Cloud Run. Before applying the mentioned method, make sure that you setup Terraform as described in deploying a new service.

If the above options don't work, you can contact Google Cloud Support to further look into your case. Let me know if it helped, thanks!