web-wasi: add web-wasi.push targets

Pushes the complete manifest using the v2s2 format, which is required for proper architecture display in container registries.

The --format v2s2 flag ensures compatibility with Docker Hub and other container registries. The --all flag ensures that both architecture variants are pushed along with the manifest.
This commit is contained in:
Matt McCormick 2024-12-29 17:59:37 -05:00
parent 5370aa6fe9
commit 5082131705

View File

@ -370,6 +370,12 @@ $(addsuffix .manifest,$(MULTIARCH_IMAGES)): $$(basename $$@)
$(BUILDAH) manifest create $(ORG)/$(basename $@)
$(BUILDAH) manifest add $(ORG)/$(basename $@) docker://$(ORG)/$(basename $@):latest-amd64
$(BUILDAH) manifest add $(ORG)/$(basename $@) docker://$(ORG)/$(basename $@):latest-arm64
.SECONDEXPANSION:
$(addsuffix .push,$(MULTIARCH_IMAGES)): $$(basename $$@).manifest
$(BUILDAH) manifest push --all --format v2s2 $(ORG)/$(basename $@) docker://$(ORG)/$(basename $@):latest
$(BUILDAH) manifest push --all --format v2s2 $(ORG)/$(basename $@) docker://$(ORG)/$(basename $@):$(TAG)
#
# testing prerequisites implicit rule
#