https://pulumi.com logo
#google-cloud
Title
# google-cloud
q

quick-wolf-8403

05/12/2022, 12:54 AM
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

gifted-cat-49297

05/12/2022, 8:25 AM
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

quick-wolf-8403

05/14/2022, 12:43 AM
Yeah, you're right! I see that now.
4 Views