Skip to content

Commit 20b1597

Browse files
committed
switch pause to docker manifest instead of manifest-tool
1 parent 4bb8df4 commit 20b1597

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/pause/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
.PHONY: all push container clean orphan all-push push-manifest
1616

17-
include ../../hack/make-rules/Makefile.manifest
18-
1917
REGISTRY ?= staging-k8s.gcr.io
2018
IMAGE = $(REGISTRY)/pause
2119
IMAGE_WITH_ARCH = $(IMAGE)-$(ARCH)
@@ -60,8 +58,10 @@ all: all-container
6058

6159
all-push: all-push-images push-manifest
6260

63-
push-manifest: manifest-tool
64-
manifest-tool push from-args --platforms $(call join_platforms,$(ALL_ARCH)) --template $(IMAGE)-ARCH:$(TAG) --target $(IMAGE):$(TAG)
61+
push-manifest:
62+
docker manifest create --amend $(IMAGE):$(TAG) $(shell echo $(ALL_ARCH) | sed -e "s~[^ ]*~$(IMAGE)\-&:$(TAG)~g")
63+
set -x; for arch in $(ALL_ARCH); do docker manifest annotate --arch $${arch} ${IMAGE}:${TAG} ${IMAGE}-$${arch}:${TAG}; done
64+
docker manifest push --purge ${IMAGE}:${TAG}
6565

6666
sub-container-%:
6767
$(MAKE) ARCH=$* container

0 commit comments

Comments
 (0)