forked from PowerDNS/pdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.docker
36 lines (27 loc) · 1.58 KB
/
Makefile.docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: all build build-nocache dep auth recursor dnsdist
VERSION=experimental
REVISION=1
all: build
auth:
docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-auth-master:$(VERSION)-$(REVISION) --rm -f Dockerfile-auth .
recursor:
docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) --rm -f Dockerfile-recursor .
dnsdist:
docker build --build-arg VERSION=$(VERSION) -t powerdns/dnsdist-master:$(VERSION)-$(REVISION) --rm -f Dockerfile-dnsdist .
build: auth recursor dnsdist
@true
build-nocache:
docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-auth-master:$(VERSION)-$(REVISION) --no-cache --rm -f Dockerfile-auth .
docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) --no-cache --rm -f Dockerfile-recursor .
docker build --build-arg VERSION=$(VERSION) -t powerdns/dnsdist-master:$(VERSION)-$(REVISION) --no-cache --rm -f Dockerfile-dnsdist .
push: build
docker push powerdns/pdns-auth-master:$(VERSION)-$(REVISION)
docker push powerdns/pdns-recursor-master:$(VERSION)-$(REVISION)
docker push powerdns/dnsdist-master:$(VERSION)-$(REVISION)
push-latest: build
docker tag powerdns/pdns-auth-master:$(VERSION)-$(REVISION) powerdns/pdns-auth-master:latest
docker push powerdns/pdns-auth-master:latest
docker tag powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) powerdns/pdns-recursor-master:latest
docker push powerdns/pdns-recursor-master:latest
docker tag powerdns/dnsdist-master:$(VERSION)-$(REVISION) powerdns/dnsdist-master:latest
docker push powerdns/dnsdist-master:latest