2020-04-08 13:05:07 +02:00
|
|
|
IMG_NAME = syncthing
|
2022-03-07 13:55:05 +01:00
|
|
|
REGISTRY=registry.monotremata.xyz:443
|
2020-04-08 13:05:07 +02:00
|
|
|
|
2022-03-07 13:55:05 +01:00
|
|
|
IMG=$(REGISTRY)/$(IMG_NAME)
|
|
|
|
|
|
|
|
.PHONY: build build-nc push
|
2020-04-08 13:05:07 +02:00
|
|
|
|
|
|
|
hw=$(shell uname -m)
|
|
|
|
ifeq ($(hw), x86_64)
|
|
|
|
ARCH=amd64
|
|
|
|
else ifeq ($(hw), aarch64)
|
|
|
|
ARCH=arm64
|
|
|
|
else
|
|
|
|
ARCH=$(hw)
|
|
|
|
endif
|
|
|
|
|
|
|
|
build: Dockerfile docker-entrypoint.sh
|
2022-03-07 13:55:05 +01:00
|
|
|
docker build -t $(IMG) --build-arg ARCH=$(ARCH) .
|
|
|
|
|
|
|
|
push: build
|
|
|
|
docker image push $(IMG)
|
2020-04-08 13:05:07 +02:00
|
|
|
|
|
|
|
build-nc: Dockerfile docker-entrypoint.sh
|
2022-03-07 13:55:05 +01:00
|
|
|
docker build --no-cache -t $(IMG) --build-arg ARCH=$(ARCH) .
|