Skip to content

Commit 8cccf3b

Browse files
committed
Test putting Docker push with multiple tags in one command
1 parent 7ce368c commit 8cccf3b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cloud-build-on-pr.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ steps:
33
- name: "gcr.io/cloud-builders/docker"
44
args: ["build", "-t", "${_IMAGE_NAME}:$SHORT_SHA", "-t", "${_IMAGE_NAME}:dev-image", "."]
55

6-
# Push the SHORT_SHA image to Google Artifact Registry
6+
# Push the SHORT_SHA & "dev-image" image to Google Artifact Registry
77
- name: "gcr.io/cloud-builders/docker"
8-
args: ["push", "${_IMAGE_NAME}:$SHORT_SHA"]
9-
10-
# Push the "dev-image" image to Google Artifact Registry
11-
- name: "gcr.io/cloud-builders/docker"
12-
args: ["push", "${_IMAGE_NAME}:dev-image"]
8+
args: ["push", "${_IMAGE_NAME}", "--all-tags"]
139

1410
options:
1511
logging: CLOUD_LOGGING_ONLY

0 commit comments

Comments
 (0)