docker-cloudflare-ddns/Makefile
Ian Fijolek 3402b91b04
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is passing
Contain entire build in Dockerfile
Rather than pulling and storing the py file, having start script
and fetching of qemu files here, everything can just be done in the
Dockerfile.
2020-01-23 17:49:12 -08:00

33 lines
645 B
Makefile

DOCKER_TAG ?= cloudflare-ddns-dev-${USER}
.PHONY: clean
.PHONY: default
default: test
.PHONY:test
test:
@echo ok
.PHONY: build
build:
docker build . -t ${DOCKER_TAG}
.PHONY: cross-build-arm
cross-build-arm:
docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-linux-arm
.PHONY: cross-build-arm64
cross-build-arm64:
docker build --build-arg REPO=arm64v8 --build-arg ARCH=aarch64 . -t ${DOCKER_TAG}-linux-arm64
.PHONY: all
all: build cross-build-arm cross-build-arm64
.PHONY: run
run: build
docker run --rm \
-e CF_API_EMAIL=${CF_API_EMAIL} \
-e CF_API_KEY=${CF_API_KEY} \
${DOCKER_TAG} \
"${DOMAIN}"