'Deploy new container revision to Cloud Run without changing Terraform

I am setting up a CI&CD environment for a GCP project involves Cloud Run. While setting up everything via Terraform is pretty much straightforward, I cannot figure out how to update the environment when the code changes.

The documentation says:

  1. Make a change to the configuration file.

But that couples the application deployment to terraform configuration, which should be responsible only for infrastructure deployment.

Ideally, I use terraform to provision the infrastructure, and another CI step to build and deploy the container.

Is there a best-practice here?

Relevant sources: 1.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source