Skip to content

Commit

Permalink
Update GCP cloudrun template to use docker image repo digest identifi…
Browse files Browse the repository at this point in the history
…er (#695)

* Update GCP cloudrun template to use docker image repo digest identifier

* Update container-gcp-go/main.go

---------

Co-authored-by: Christian Nunciato <[email protected]>
  • Loading branch information
mnlumi and cnunciato authored Dec 15, 2023
1 parent 80ad82a commit 45ba991
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion container-gcp-csharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Image = image.ImageName,
Image = image.RepoDigest,
Resources = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerResourcesArgs
{
Limits = {
Expand Down
2 changes: 1 addition & 1 deletion container-gcp-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func main() {
Spec: cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
cloudrun.ServiceTemplateSpecContainerArgs{
Image: image.ImageName,
Image: image.RepoDigest.Elem(),
Resources: cloudrun.ServiceTemplateSpecContainerResourcesArgs{
Limits: pulumi.ToStringMap(map[string]string{
"memory": memory,
Expand Down
2 changes: 1 addition & 1 deletion container-gcp-python/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
spec=cloudrun.ServiceTemplateSpecArgs(
containers=[
cloudrun.ServiceTemplateSpecContainerArgs(
image=image.image_name,
image=image.repo_digest,
resources=cloudrun.ServiceTemplateSpecContainerResourcesArgs(
limits=dict(
memory=memory,
Expand Down
2 changes: 1 addition & 1 deletion container-gcp-typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const service = new gcp.cloudrun.Service("service", {
spec: {
containers: [
{
image: image.imageName,
image: image.repoDigest,
resources: {
limits: {
memory,
Expand Down

0 comments on commit 45ba991

Please sign in to comment.