forked from phusion/holy-build-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 1.1 KB
/
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
29
30
31
VERSION = 1.2.1
MAJOR_VERSION = 1.2
.PHONY: all 32 64 test tags release
all: 32 64
32:
docker build --rm -t phusion/holy-build-box-32:$(VERSION) -f Dockerfile-32 --pull .
64:
docker build --rm -t phusion/holy-build-box-64:$(VERSION) -f Dockerfile-64 --pull .
test:
echo "*** You should run: SKIP_FINALIZE=1 linux32 bash /hbb_build/build.sh"
docker run -t -i --rm -v `pwd`/image:/hbb_build:ro phusion/centos-5-32:latest bash
test64:
echo "*** You should run: SKIP_FINALIZE=1 bash /hbb_build/build.sh"
docker run -t -i --rm -v `pwd`/image:/hbb_build:ro centos:5 bash
tags:
docker tag phusion/holy-build-box-32:$(VERSION) phusion/holy-build-box-32:$(MAJOR_VERSION)
docker tag phusion/holy-build-box-64:$(VERSION) phusion/holy-build-box-64:$(MAJOR_VERSION)
docker tag phusion/holy-build-box-32:$(VERSION) phusion/holy-build-box-32:latest
docker tag phusion/holy-build-box-64:$(VERSION) phusion/holy-build-box-64:latest
release: tags
docker push phusion/holy-build-box-32
docker push phusion/holy-build-box-64
@echo "*** Don't forget to create a tag. git tag rel-$(VERSION) && git push origin rel-$(VERSION)"