Skip to content

Commit

Permalink
Fix: Update cloudbuild.yaml to combine the build and tag steps (#688)
Browse files Browse the repository at this point in the history
This also fixes an issue with the infrastructure-public-image tagging.
  • Loading branch information
andrewsg authored Oct 16, 2024
1 parent 0dbdfb6 commit 555d4a7
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,13 @@
timeout: 7200s # 2 hours
steps:
- name: gcr.io/cloud-builders/docker
args: ["build", "-t", "gcr.io/cloud-devrel-public-resources/storage-testbench:$TAG_NAME", "."]
args: ["build",
"-t", "gcr.io/cloud-devrel-public-resources/storage-testbench:$TAG_NAME",
"-t", "gcr.io/cloud-devrel-public-resources/storage-testbench:latest",
"-t", "gcr.io/cloud-devrel-public-resources/storage-testbench:infrastructure-public-image-$SHORT_SHA",
"."]
dir: .
id: storage-testbench-build
- name: gcr.io/cloud-builders/docker
args:
[
"tag",
"gcr.io/cloud-devrel-public-resources/storage-testbench:$TAG_NAME",
"gcr.io/cloud-devrel-public-resources/storage-testbench:latest",
]
- name: gcr.io/cloud-builders/docker
args:
[
"tag",
"gcr.io/cloud-devrel-public-resources/storage-testbench:$TAG_NAME",
"gcr.io/cloud-devrel-public-resources/storage-testbench:infrastructure-public-image-tb-latest",
]

images:
- gcr.io/cloud-devrel-public-resources/storage-testbench:$TAG_NAME
Expand Down

0 comments on commit 555d4a7

Please sign in to comment.