-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
28 lines (21 loc) · 943 Bytes
/
Makefile
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
VERSION?=dev-master
HTTP_VERSION?=dev-master
TAG?=latest
# example:
# $ make VERSION=dev-master TAG=latest nginx
# $ make TAG=latest push-all
.PHONY: default nginx ppm standalone push-all
default: nginx ppm standalone
nginx:
docker build -t phppm/nginx:${TAG} -f build/Dockerfile-nginx build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag phppm/nginx:${TAG} phppm/nginx:latest
ppm:
docker build -t phppm/ppm:${TAG} -f build/Dockerfile-ppm build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag phppm/ppm:${TAG} phppm/ppm:latest
standalone:
docker build -t phppm/standalone:${TAG} -f build/Dockerfile-standalone build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag phppm/standalone:${TAG} phppm/standalone:latest
push-all:
docker push phppm/nginx:${TAG}
docker push phppm/standalone:${TAG}
docker push phppm/ppm:${TAG}