You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the implementation for cloud run (CR) deployment is such that, we create an image using a "local_provisioner" and create the cloud run resource in Terraform referencing the latest version of the newly created container.
Problem with this approach is that if there are any updates to the implementation of the service and a new image is pushed, the CR instance doesn't get updated, even if Terraform is re-ran, since the version of the image is not saved in state due to the "latest" image reference.
My recommendation would be, as part of the submission service component, we also generate a cloudbuild or github actions workflow for the submission service, so that if any changes are pushed to the submission service, we build the new image and deploy the new image to the CR instance, using a templatized workflow. Here are two references from Cloud Build and Github Actions:
Currently, the implementation for cloud run (CR) deployment is such that, we create an image using a "local_provisioner" and create the cloud run resource in Terraform referencing the latest version of the newly created container.
Problem with this approach is that if there are any updates to the implementation of the service and a new image is pushed, the CR instance doesn't get updated, even if Terraform is re-ran, since the version of the image is not saved in state due to the "latest" image reference.
My recommendation would be, as part of the submission service component, we also generate a cloudbuild or github actions workflow for the submission service, so that if any changes are pushed to the submission service, we build the new image and deploy the new image to the CR instance, using a templatized workflow. Here are two references from Cloud Build and Github Actions:
https://cloud.google.com/build/docs/deploying-builds/deploy-cloud-run
https://github.com/google-github-actions/deploy-cloudrun
The text was updated successfully, but these errors were encountered: