2022-06-28 12:40:36 +02:00
|
|
|
IMG_NAME=pleroma
|
|
|
|
REGISTRY=registry.monotremata.xyz
|
|
|
|
IMG=$(REGISTRY)/$(IMG_NAME)
|
|
|
|
PLATFORMS=linux/amd64
|
2021-02-23 19:28:50 +01:00
|
|
|
|
2022-08-22 17:23:56 +02:00
|
|
|
.PHONY: push buildx clean
|
2021-02-23 19:28:50 +01:00
|
|
|
|
2022-08-22 17:23:56 +02:00
|
|
|
out/image-id: Dockerfile entrypoint.sh
|
|
|
|
mkdir -p $(@D)
|
2022-06-28 12:40:36 +02:00
|
|
|
docker build -t $(IMG) .
|
2022-08-22 17:23:56 +02:00
|
|
|
echo $(IMG) > $@
|
2021-02-23 19:28:50 +01:00
|
|
|
|
2022-08-22 17:23:56 +02:00
|
|
|
push: out/image-id
|
2022-06-28 12:40:36 +02:00
|
|
|
docker image push $(IMG)
|
|
|
|
|
|
|
|
buildx: Dockerfile entrypoint.sh
|
|
|
|
docker buildx build \
|
|
|
|
--platform $(PLATFORMS) \
|
|
|
|
--tag $(IMG) \
|
|
|
|
--push \
|
|
|
|
.
|
2022-08-22 17:23:56 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf out
|