dockerfiles/vdirsyncer/Makefile

21 lines
491 B
Makefile
Raw Normal View History

2020-04-08 13:05:07 +02:00
IMG_NAME = vdirsyncer
2022-03-07 13:55:05 +01:00
USERNAME = rilla
REGISTRY=registry.monotremata.xyz:443
LOCAL_IMG=$(USERNAME)/$(IMG_NAME)
REGISTRY_IMG=$(REGISTRY)/$(IMG_NAME)
2020-04-08 13:05:07 +02:00
2022-03-07 13:55:05 +01:00
.PHONY: build build-nc tag push
2020-04-08 13:05:07 +02:00
build: Dockerfile entrypoint.sh crontab do_sync.sh
docker build -t $(USERNAME)/$(IMG_NAME) .
2022-03-07 13:55:05 +01:00
tag: build
docker image tag $(LOCAL_IMG) $(REGISTRY_IMG)
push: tag
docker image push $(REGISTRY_IMG)
2020-04-08 13:05:07 +02:00
build-nc: Dockerfile entrypoint.sh crontab do_sync.sh
docker build --no-cache -t $(USERNAME)/$(IMG_NAME) .