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
|
# 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: # @HELP builds a manifest list of containers for all platforms
|
||||||
manifest-list: all-push
|
manifest-list: all-container
|
||||||
@for bin in $(BINS); do \
|
@for bin in $(BINS); do \
|
||||||
platforms=$$(echo $(ALL_PLATFORMS) | sed 's/ /,/g'); \
|
docker manifest create $(REGISTRY)/$$bin:$(VERSION); \
|
||||||
manifest-tool \
|
for platform in $(ALL_PLATFORMS); do \
|
||||||
push from-args \
|
docker manifest add --arch $$(echo $$platform | cut -d/ -f2) \
|
||||||
--platforms "$$platforms" \
|
$(REGISTRY)/$$bin:$(VERSION) \
|
||||||
--template $(REGISTRY)/$$bin:$(VERSION)__OS_ARCH \
|
$(REGISTRY)/$$bin:$(VERSION)__$$(echo $$platform | sed 's#/#_#g'); \
|
||||||
--target $(REGISTRY)/$$bin:$(VERSION); \
|
done; \
|
||||||
|
docker manifest push --all $(REGISTRY)/$$bin:$(VERSION) \
|
||||||
|
docker://$(REGISTRY)/$$bin:$(VERSION); \
|
||||||
done
|
done
|
||||||
|
|
||||||
version: # @HELP outputs the version string
|
version: # @HELP outputs the version string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user