update multi-arch manifest push
uses the manifest command from podman, which hopefully is the same as docker. manifest-tool is the old-and-busted way of doing multi-arch in any case
This commit is contained in:
parent
adb0484883
commit
07472b3a54
16
Makefile
16
Makefile
|
@ -209,14 +209,16 @@ push: $(CONTAINER_DOTFILES)
|
|||
|
||||
# TODO: Upstream was using manifest-tool and gcloud commands. Needs update
|
||||
manifest-list: # @HELP builds a manifest list of containers for all platforms
|
||||
manifest-list: all-push
|
||||
manifest-list: all-container
|
||||
@for bin in $(BINS); do \
|
||||
platforms=$$(echo $(ALL_PLATFORMS) | sed 's/ /,/g'); \
|
||||
manifest-tool \
|
||||
push from-args \
|
||||
--platforms "$$platforms" \
|
||||
--template $(REGISTRY)/$$bin:$(VERSION)__OS_ARCH \
|
||||
--target $(REGISTRY)/$$bin:$(VERSION); \
|
||||
docker manifest create $(REGISTRY)/$$bin:$(VERSION); \
|
||||
for platform in $(ALL_PLATFORMS); do \
|
||||
docker manifest add --arch $$(echo $$platform | cut -d/ -f2) \
|
||||
$(REGISTRY)/$$bin:$(VERSION) \
|
||||
$(REGISTRY)/$$bin:$(VERSION)__$$(echo $$platform | sed 's#/#_#g'); \
|
||||
done; \
|
||||
docker manifest push --all $(REGISTRY)/$$bin:$(VERSION) \
|
||||
docker://$(REGISTRY)/$$bin:$(VERSION); \
|
||||
done
|
||||
|
||||
version: # @HELP outputs the version string
|
||||
|
|
Loading…
Reference in New Issue
Block a user