From d8d2285fe70ee3f755b1d27d4a173a02e0dd2108 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Thu, 7 Mar 2024 14:29:37 -0800 Subject: [PATCH] images: build an image before pushing it to the remote repo PiperOrigin-RevId: 613704858 --- tools/images.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/images.mk b/tools/images.mk index 237399174..eeef3f000 100644 --- a/tools/images.mk +++ b/tools/images.mk @@ -168,7 +168,7 @@ load-%: register-cross ## Pull or build an image locally. # tag. push-%: gcloud artifacts docker images describe $(call remote_image,$*):$(call tag,$*) >&2 || \ - docker image push $(call remote_image,$*):$(call tag,$*) >&2 + ( $(call rebuild,$*) && docker image push $(call remote_image,$*):$(call tag,$*) >&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