sparse-intern-71089
03/07/2022, 5:07 PMgreat-queen-39697
03/07/2022, 11:23 PMastonishing-gpu-28317
04/04/2022, 7:53 PMgreat-queen-39697
04/04/2022, 8:46 PMgreat-queen-39697
04/04/2022, 8:57 PMdependsOn
flag for your Cloud Run call to make it depend on the Cloud Build output, then applied that output to your code, it should work. Something like this (note I haven't tested this yet):
gcp.cloudbuild.Trigger(..., substitutions={"_VERSION": "blah"}, ...)
gcp.cloudrun.Service(..., template=gcp.cloudrun.ServiceTemplateArgs(spec=gcp.cloudrun.ServiceTemplateSpecArgs(containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(image=<from above>, ...)], ...), ...), ...)
The image's args and environment variables are passed in via the values here: https://www.pulumi.com/registry/packages/gcp/api-docs/cloudrun/service/#servicetemplatespeccontainerastonishing-gpu-28317
04/04/2022, 9:23 PMastonishing-gpu-28317
04/05/2022, 12:45 AMgreat-queen-39697
04/05/2022, 1:29 AMpulumi.export('id', image.id)
and see if it dumps the correct string to your Pulumi terminal output. If it doesn't, I'll hunt down the correct oneNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by