dockerfiles/transmission/Makefile

25 lines
400 B
Makefile
Raw Normal View History

2022-08-16 13:07:00 +02:00
IMG_NAME=transmission
REGISTRY=registry.monotremata.xyz
2022-03-07 13:55:05 +01:00
IMG=$(REGISTRY)/$(IMG_NAME)
2022-08-22 11:57:23 +02:00
PLATFORMS=linux/amd64,linux/arm64
2021-03-26 15:11:26 +01:00
.PHONY: push buildx clean
2021-03-26 15:11:26 +01:00
out/image-id: Dockerfile
mkdir -p $(@D)
2022-03-07 13:55:05 +01:00
docker build -t $(IMG) .
echo $(IMG) > $@
2022-03-07 13:55:05 +01:00
push: out/image-id
2022-03-07 13:55:05 +01:00
docker image push $(IMG)
2021-03-26 15:11:26 +01:00
2022-08-16 13:07:00 +02:00
buildx: Dockerfile
docker buildx build \
--platform $(PLATFORMS) \
--tag $(IMG) \
--push \
.
clean:
rm -rf out