images: build an image before pushing it to the remote repo

PiperOrigin-RevId: 613704858
This commit is contained in:
Andrei Vagin
2024-03-07 14:31:50 -08:00
committed by gVisor bot
parent 7af5e72c1f
commit d8d2285fe7
+1 -1
View File
@@ -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