From 8a7a35e9d6257acec554304d4fe3d4abc86dbde4 Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Fri, 29 Jul 2022 13:33:35 -0700 Subject: [PATCH] [gke-perf] Add "latest" tag to gcr.io images. PiperOrigin-RevId: 464147312 --- tools/images.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/images.mk b/tools/images.mk index 2003da5bd..4e267167d 100644 --- a/tools/images.mk +++ b/tools/images.mk @@ -135,6 +135,7 @@ rebuild = \ docker build $(DOCKER_PLATFORM_ARGS) \ -f "$$T/$(call dockerfile,$(1))" \ -t "$(call remote_image,$(1)):$(call tag,$(1))" \ + -t "$(call remote_image,$(1))":latest \ $$T >&2 && \ rm -rf $$T) && \ $(call local_tag,$(1)) && \ @@ -152,7 +153,8 @@ load-%: register-cross ## Pull or build an image locally. # already exists) or building manually. Note that this generic rule will match # the fully-expanded remote image tag. push-%: load-% ## Push a given image. - @docker push $(call remote_image,$*):$(call tag,$*) >&2 + @docker image push $(call remote_image,$*):$(call tag,$*) >&2 + @docker image push $(call remote_image,$*):latest >&2 # register-cross registers the necessary qemu binaries for cross-compilation. # This may be used by any target that may execute containers that are not the