1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-11-09 22:50:06 +00:00
dns/Makefile
Knut Ahlers 473e17fc63
Only push image when on master
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-29 00:22:05 +02:00

18 lines
427 B
Makefile

default: container
container:
docker build --no-cache --pull -t luzifer/dns .
bash -eo pipefail -c '[ "$(REF)" == "refs/heads/master" ] && docker push luzifer/dns || true'
check_zones: .venv
./.venv/bin/python3 checkZonefile.py
.venv:
virtualenv --python=python3 .venv
./.venv/bin/pip3 install -r requirements.txt
alpine-prereq:
apk --no-cache add make python3
pip3 install virtualenv
.PHONY: check_zones container