2023-02-12 17:37:35 +01:00
|
|
|
IMG_NAME = pleroma
|
|
|
|
REGISTRY = registry.monotremata.xyz
|
|
|
|
IMG = $(REGISTRY)/$(IMG_NAME)
|
|
|
|
PLATFORM = linux/amd64
|
|
|
|
JOBS = 1
|
2021-02-23 19:28:50 +01:00
|
|
|
|
2023-02-12 17:37:35 +01:00
|
|
|
.PHONY: push
|
2021-02-23 19:28:50 +01:00
|
|
|
|
2022-10-18 09:53:27 +02:00
|
|
|
out/image-name: Dockerfile entrypoint.sh
|
|
|
|
mkdir -p $(@D)
|
2023-02-12 17:37:35 +01:00
|
|
|
buildah build \
|
|
|
|
--jobs=$(JOBS) \
|
|
|
|
--platform=$(PLATFORM) \
|
|
|
|
--manifest=$(IMG) .
|
2022-10-18 09:53:27 +02:00
|
|
|
@echo $(IMG) > $(@)
|
2021-02-23 19:28:50 +01:00
|
|
|
|
2022-10-18 09:53:27 +02:00
|
|
|
push: out/image-name
|
2023-02-12 17:37:35 +01:00
|
|
|
podman manifest push --all $(IMG) docker://$(IMG)
|