Skip to content

Commit 2d29b4e

Browse files
committed
Changed logic to add release alias tag
1 parent 76b9865 commit 2d29b4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ build-and-push-multi-arch: build-image-and-push-linux-amd64 build-image-and-push
7676

7777
.PHONY: release-alias-tag
7878
release-alias-tag: # Adds the tag to the last build tag.
79-
docker pull $(REGISTRY)/$(IMG):$(TAG)
80-
docker tag $(REGISTRY)/$(IMG):$(TAG) $(REGISTRY)/$(IMG):$(RELEASE_ALIAS_TAG)
81-
docker push $(REGISTRY)/$(IMG):$(RELEASE_ALIAS_TAG)
79+
gcloud container images add-tag -q $(REGISTRY)/$(IMG):$(TAG) $(REGISTRY)/$(IMG):$(RELEASE_ALIAS_TAG)
8280

8381
.PHONY: release-staging
8482
release-staging: ## Builds and push container images to the staging image registry.

0 commit comments

Comments
 (0)