astonishing-gpu-28317
03/07/2022, 5:07 PMpulumi up
, those environment variables are removed by pulumi because they’re not defined in our pulumi cloud run profilegreat-queen-39697
03/07/2022, 11:23 PMastonishing-gpu-28317
04/04/2022, 7:53 PMgreat-queen-39697
04/04/2022, 8:46 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 PMgreat-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 one