sparse-intern-71089
06/14/2023, 11:31 PMlittle-cartoon-10569
06/14/2023, 11:35 PMlittle-cartoon-10569
06/14/2023, 11:35 PMthankful-musician-15476
06/14/2023, 11:38 PMlittle-cartoon-10569
06/14/2023, 11:42 PMlittle-cartoon-10569
06/14/2023, 11:42 PMthankful-musician-15476
06/14/2023, 11:43 PMthankful-musician-15476
06/14/2023, 11:44 PMconst appImage = new docker.Image("app-image", {
imageName: `<http://gcr.io/${project}/${imageName}|gcr.io/${project}/${imageName}>`
}
const appService = new gcp.cloudrunv2.Service("app-service", {
location: location,
template: {
containers: [
{
image: appImage.imageName,
},
],
},
traffics: [
{
type: "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST",
percent: 100,
},
],
}, {
dependsOn: [appImage],
});
thankful-musician-15476
06/14/2023, 11:44 PMappService
resource to be updated when appImage
is updatedthankful-musician-15476
06/14/2023, 11:44 PMthankful-musician-15476
06/14/2023, 11:45 PMlittle-cartoon-10569
06/14/2023, 11:45 PMthankful-musician-15476
06/14/2023, 11:46 PMappImage
gets updated, but appService
doesn’t get updated at alllittle-cartoon-10569
06/14/2023, 11:53 PMthankful-musician-15476
06/14/2023, 11:55 PMappImage.repoDigest
won’t work with dependsOn because it’s not a resourcethankful-musician-15476
06/14/2023, 11:55 PMwhite-balloon-205
repoDigest
is a valid fully qualified image name - so you should be able to pass that directly instead of imageName
to get the behavior you are looking for here. The name is slightly unusual, but derived from the term the Docker API uses to refer to this.thankful-musician-15476
06/15/2023, 1:18 AM