-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 688 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 688 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: test
docker:
docker build -t huntprod/verse .
docker run huntprod/verse help
verse:
rm -f verse-*
./pack $(VERSION) && cp verse-* $@
release:
@echo "Checking that VERSION was defined in the calling environment"
@test -n "$(VERSION)"
@echo "OK. VERSION=$(VERSION)"
docker build -t huntprod/verse:latest --build-arg VERSION=$(VERSION) .
docker tag huntprod/verse:latest huntprod/verse:$(VERSION)
docker push huntprod/verse:latest
docker push huntprod/verse:$(VERSION)
test:
docker build -t huntprod/verse-test -f t/Dockerfile .
docker run --rm -v $(PWD):/app -u $(shell id -u) huntprod/verse-test
clean:
rm -f verse-* verse
.PHONY: default docker release test