From 20b1597302a42184636e3e46c6c6fbe33f047d98 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Thu, 13 Feb 2020 14:53:19 -0800 Subject: [PATCH] switch pause to docker manifest instead of manifest-tool --- build/pause/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/pause/Makefile b/build/pause/Makefile index 1859f6258b2..cc757d89f83 100644 --- a/build/pause/Makefile +++ b/build/pause/Makefile @@ -14,8 +14,6 @@ .PHONY: all push container clean orphan all-push push-manifest -include ../../hack/make-rules/Makefile.manifest - REGISTRY ?= staging-k8s.gcr.io IMAGE = $(REGISTRY)/pause IMAGE_WITH_ARCH = $(IMAGE)-$(ARCH) @@ -60,8 +58,10 @@ all: all-container all-push: all-push-images push-manifest -push-manifest: manifest-tool - manifest-tool push from-args --platforms $(call join_platforms,$(ALL_ARCH)) --template $(IMAGE)-ARCH:$(TAG) --target $(IMAGE):$(TAG) +push-manifest: + docker manifest create --amend $(IMAGE):$(TAG) $(shell echo $(ALL_ARCH) | sed -e "s~[^ ]*~$(IMAGE)\-&:$(TAG)~g") + set -x; for arch in $(ALL_ARCH); do docker manifest annotate --arch $${arch} ${IMAGE}:${TAG} ${IMAGE}-$${arch}:${TAG}; done + docker manifest push --purge ${IMAGE}:${TAG} sub-container-%: $(MAKE) ARCH=$* container