dockerfiles/mpd/Makefile

29 lines
571 B
Makefile
Raw Normal View History

2022-03-07 16:56:50 +01:00
IMG_NAME = mpd
2023-01-08 17:40:17 +01:00
REGISTRY = registry.monotremata.xyz
IMG = $(REGISTRY)/$(IMG_NAME)
PLATFORM = linux/amd64,linux/arm64
JOBS = 1
2022-03-07 16:56:50 +01:00
2023-01-08 17:40:17 +01:00
.PHONY: build push
2022-03-07 16:56:50 +01:00
2023-01-08 17:40:17 +01:00
out/image-name: Dockerfile
mkdir -p $(@D)
buildah build \
--jobs=$(JOBS) \
--platform=$(PLATFORM) \
--manifest=$(IMG) .
@echo $(IMG) > $(@)
2022-08-16 13:07:00 +02:00
2023-01-08 17:40:17 +01:00
#out/image-name: Dockerfile
# mkdir -p $(@D)
# podman build \
# --manifest $(ING) \
# --platform linux/amd64 \
# --platform linux/arm64 \
# .
# @echo $(IMG) > $(@)
push: out/image-name
podman manifest push --all $(IMG) docker://$(IMG)