Hi folks! I have set up a Cloud Run service follow...
# google-cloud
q
Hi folks! I have set up a Cloud Run service following the examples here: https://www.pulumi.com/registry/packages/gcp/api-docs/cloudrun/service/ I would like it to update (redeploy) on a
pulumi up
if the docker image has changed. Do I need to change the value of the
image
string to trigger this? Or will it change if the tag is pointing to a new image? Or do I need to extract the SHA and pass that in?
Like from
docker inspect  --format='{{.RepoDigests}}'
Or just get the digest from a surrounding github action
... Yeah. Not sure if that's the best way to create a dependency, but feeding it a new image with a SHA certainly works.
g
You need to update Cloud Run image. It's using more like sha256 underneath probably but when you point to :latest it's the same for CR as it's not checking if hash has changed.
q
Yeah, you're right! I see that now.