2023-02-12 16:45:03 +01:00
|
|
|
IMG_NAME =transmission
|
|
|
|
REGISTRY = registry.monotremata.xyz
|
|
|
|
IMG = $(REGISTRY)/$(IMG_NAME)
|
|
|
|
PLATFORM = linux/amd64,linux/arm64
|
|
|
|
JOBS = 1
|
2021-03-26 15:11:26 +01:00
|
|
|
|
2023-02-12 16:45:03 +01:00
|
|
|
.PHONY: push
|
2021-03-26 15:11:26 +01:00
|
|
|
|
2023-02-12 16:45:03 +01:00
|
|
|
out/image-name: Dockerfile
|
|
|
|
mkdir -p $(@D)
|
|
|
|
buildah build \
|
|
|
|
--jobs=$(JOBS) \
|
|
|
|
--platform=$(PLATFORM) \
|
|
|
|
--manifest=$(IMG) .
|
|
|
|
@echo $(IMG) > $(@)
|
2022-03-07 13:55:05 +01:00
|
|
|
|
2023-02-12 16:45:03 +01:00
|
|
|
push: out/image-name
|
|
|
|
podman manifest push --all $(IMG) docker://$(IMG)
|