dockerfiles/static-page-builder/Makefile

25 lines
407 B
Makefile
Raw Normal View History

2022-08-22 12:20:17 +02:00
IMG_NAME=static-page-builder
REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: push buildx clean
2022-08-22 12:20:17 +02:00
out/image-id: Dockerfile
mkdir -p $(@D)
2022-08-22 12:20:17 +02:00
docker build -t $(IMG) .
echo $(IMG) > $@
2022-08-22 12:20:17 +02:00
push: out/image-id
2022-08-22 12:20:17 +02:00
docker image push $(IMG)
buildx: Dockerfile
docker buildx build \
--platform $(PLATFORMS) \
--tag $(IMG) \
--push \
.
clean:
rm -rf out