-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (22 loc) · 1.3 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
TAG=test
CACHEBUST="$(shell date +%s)$(shell echo $$PPID)"
all: trusty-amd64 bionic-x86 bionic-arm64 bionic-arm32 xenial-ppc64el docurium
push: all
docker push libgit2/trusty-amd64:${TAG}
docker push libgit2/bionic-x86:${TAG}
docker push libgit2/bionic-arm64:${TAG}
docker push libgit2/bionic-arm32:${TAG}
docker push libgit2/xenial-ppc64el:${TAG}
docker push libgit2/docurium:${TAG}
trusty-amd64:
docker build --build-arg CACHEBUST=$(CACHEBUST) -t libgit2/trusty-amd64:${TAG} --build-arg BASE=ubuntu:trusty -f trusty.Dockerfile .
bionic-x86:
docker build --build-arg CACHEBUST=$(CACHEBUST) -t libgit2/bionic-x86:${TAG} --build-arg BASE=multiarch/ubuntu-core:x86-bionic -f bionic.Dockerfile .
bionic-arm64:
docker build --build-arg CACHEBUST=$(CACHEBUST) -t libgit2/bionic-arm64:${TAG} --build-arg BASE=multiarch/ubuntu-core:arm64-bionic -f bionic.Dockerfile .
bionic-arm32:
docker build --build-arg CACHEBUST=$(CACHEBUST) -t libgit2/bionic-arm32:${TAG} --build-arg BASE=multiarch/ubuntu-core:armhf-bionic -f bionic.Dockerfile .
xenial-ppc64el:
docker build --build-arg CACHEBUST=$(CACHEBUST) -t libgit2/xenial-ppc64el:${TAG} --build-arg BASE=multiarch/ubuntu-core:ppc64el-xenial -f xenial.Dockerfile .
docurium:
docker build --build-arg CACHEBUST=$(CACHEBUST) -t libgit2/docurium:${TAG} -f docurium.Dockerfile .