25 lines
424 B
Makefile
25 lines
424 B
Makefile
|
IMG_NAME=sendxmpp
|
||
|
REGISTRY=registry.monotremata.xyz
|
||
|
IMG=$(REGISTRY)/$(IMG_NAME)
|
||
|
PLATFORMS=linux/amd64,linux/arm64
|
||
|
|
||
|
.PHONY: push buildx clean
|
||
|
|
||
|
out/image-id: Dockerfile entrypoint.sh
|
||
|
mkdir -p $(@D)
|
||
|
docker build -t $(IMG) .
|
||
|
echo $(IMG) > $@
|
||
|
|
||
|
push: out/image-id
|
||
|
docker image push $(IMG)
|
||
|
|
||
|
buildx: Dockerfile entrypoint.sh
|
||
|
docker buildx build \
|
||
|
--platform $(PLATFORMS) \
|
||
|
--tag $(IMG) \
|
||
|
--push \
|
||
|
.
|
||
|
|
||
|
clean:
|
||
|
rm -rf out
|