mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-03-12 17:20:08 +01:00
web-wasi: add web-wasi.manifest command
The docker executable currently has some of these `manifest` subcommands, but not all, and they are marked experimental, so use buildah.
This commit is contained in:
parent
72e51cae18
commit
5370aa6fe9
9
Makefile
9
Makefile
@ -8,6 +8,7 @@
|
||||
# Common values: docker, podman, buildah
|
||||
DOCKER := $(or $(OCI_EXE), docker)
|
||||
BUILD_DOCKER := $(or $(BUILD_DOCKER), $(DOCKER))
|
||||
BUILDAH := $(or $(BUILDAH_EXE), buildah)
|
||||
# Name of the docker-equivalent executable for running test containers.
|
||||
# Supports the use case:
|
||||
#
|
||||
@ -361,6 +362,14 @@ $(addsuffix .test,$(MULTIARCH_IMAGES)): $$(basename $$@)
|
||||
$(addsuffix .push-$(HOST_ARCH),$(MULTIARCH_IMAGES)): $$(basename $$@)
|
||||
$(BUILD_DOCKER) push $(ORG)/$(basename $@):latest-$(HOST_ARCH) \
|
||||
&& $(BUILD_DOCKER) push $(ORG)/$(basename $@):$(TAG)-$(HOST_ARCH)
|
||||
|
||||
.SECONDEXPANSION:
|
||||
$(addsuffix .manifest,$(MULTIARCH_IMAGES)): $$(basename $$@)
|
||||
if $(BUILDAH) manifest exists $(ORG)/$(basename $@); then \
|
||||
$(BUILDAH) manifest rm $(ORG)/$(basename $@); fi
|
||||
$(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
|
||||
#
|
||||
# testing prerequisites implicit rule
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user