2022-08-16 13:07:00 +02:00
|
|
|
IMG_NAME=rainloop
|
|
|
|
REGISTRY=registry.monotremata.xyz
|
2022-03-07 13:55:05 +01:00
|
|
|
IMG=$(REGISTRY)/$(IMG_NAME)
|
2022-08-16 13:07:00 +02:00
|
|
|
PLATFORMS=linux/arm64
|
2022-03-07 13:55:05 +01:00
|
|
|
|
2022-08-22 17:23:56 +02:00
|
|
|
.PHONY: push buildx clean
|
2021-05-05 20:32:53 +02:00
|
|
|
|
2022-08-22 17:23:56 +02:00
|
|
|
out/image-id: Dockerfile entrypoint.sh nginx.conf
|
|
|
|
mkdir -p $(@D)
|
2022-03-07 13:55:05 +01:00
|
|
|
docker build -t $(IMG) .
|
2022-08-22 17:23:56 +02:00
|
|
|
echo $(IMG) > $@
|
2022-03-07 13:55:05 +01:00
|
|
|
|
2022-08-22 17:23:56 +02:00
|
|
|
push: out/image-id
|
2022-03-07 13:55:05 +01:00
|
|
|
docker image push $(IMG)
|
2021-05-05 20:32:53 +02:00
|
|
|
|
2022-08-16 18:01:04 +02:00
|
|
|
buildx: Dockerfile entrypoint.sh nginx.conf
|
2022-08-16 13:07:00 +02:00
|
|
|
docker buildx build \
|
|
|
|
--platform $(PLATFORMS) \
|
|
|
|
--tag $(IMG) \
|
|
|
|
--push \
|
|
|
|
.
|
2022-08-22 17:23:56 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf out
|