forked from jakzal/phpqa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 716 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 716 Bytes
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
default: build
build: build-latest build-alpine
.PHONY: build
build-latest:
docker build -t jakzal/phpqa:latest .
.PHONY: build-latest
build-alpine:
docker build -f Dockerfile-alpine -t jakzal/phpqa:alpine .
.PHONY: build-alpine
NIGHTLY_TAG := jakzal/phpqa-nightly:$(shell date +%y%m%d)
build-nightly:
docker build -t $(NIGHTLY_TAG) .
@docker login -u jakzal -p ${DOCKER_HUB_PASSWORD}
docker push $(NIGHTLY_TAG)
.PHONY: build-nightly
NIGHTLY_ALPINE_TAG := jakzal/phpqa-nightly:$(shell date +%y%m%d)-alpine
build-nightly-alpine:
docker build -f Dockerfile-alpine -t $(NIGHTLY_ALPINE_TAG) .
@docker login -u jakzal -p ${DOCKER_HUB_PASSWORD}
docker push $(NIGHTLY_ALPINE_TAG)
.PHONY: build-nightly-alpine