File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
.PHONY : all push container clean orphan all-push push-manifest
16
16
17
- include ../../hack/make-rules/Makefile.manifest
18
-
19
17
REGISTRY ?= staging-k8s.gcr.io
20
18
IMAGE = $(REGISTRY ) /pause
21
19
IMAGE_WITH_ARCH = $(IMAGE ) -$(ARCH )
@@ -60,8 +58,10 @@ all: all-container
60
58
61
59
all-push : all-push-images push-manifest
62
60
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}
65
65
66
66
sub-container-% :
67
67
$(MAKE ) ARCH=$* container
You can’t perform that action at this time.
0 commit comments