forked from laratools/ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 648 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 648 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
28
29
30
31
32
33
34
35
.DEFAULT_GOAL := help
.PHONY: *
help:
echo "See Makefile for usage"
build:
echo "Building Tag: $(TAG)"
@docker build \
--no-cache \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t scriptor2k2/ci:$(TAG) \
-f Dockerfile-$(TAG) .
test:
echo "Testing Tag: $(TAG)"
dgoss run -it scriptor2k2/ci:$(TAG)
build-all:
make build TAG="8.0"
make build TAG="8.1"
test-all:
make test TAG="8.0"
make test TAG="8.1"
push-all:
docker push scriptor2k2/ci:8.0
docker push scriptor2k2/ci:8.1
clean:
docker ps -a -q | xargs docker rm -f
docker images -q | xargs docker rmi -f