-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
34 lines (23 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
31
32
33
34
all: check build push
build: build-alpine build-debian build-quickstart
check:
if [ -z ${VERSION} ];then echo "Set VERSION environment variable" exit 1;fi
build-alpine:
docker build -t rafaelhdr/glewlwyd-oauth2-server:${VERSION}-alpine --build-arg GLEWLWYD_VERSION=${VERSION} alpine
build-debian:
docker build -t rafaelhdr/glewlwyd-oauth2-server:${VERSION}-debian --build-arg GLEWLWYD_VERSION=${VERSION} debian
build-quickstart:
docker build -t rafaelhdr/glewlwyd-oauth2-server:${VERSION}-quickstart --build-arg GLEWLWYD_VERSION=${VERSION} quickstart
push: push-alpine push-debian push-quickstart push-latest push-quickstart-latest
push-alpine: build-alpine
docker push rafaelhdr/glewlwyd-oauth2-server:${VERSION}-alpine
push-debian: build-debian
docker push rafaelhdr/glewlwyd-oauth2-server:${VERSION}-debian
push-latest: build-debian
(docker tag rafaelhdr/glewlwyd-oauth2-server:${VERSION}-debian rafaelhdr/glewlwyd-oauth2-server:latest && \
docker push rafaelhdr/glewlwyd-oauth2-server:latest)
push-quickstart: build-quickstart
docker push rafaelhdr/glewlwyd-oauth2-server:${VERSION}-quickstart
push-quickstart-latest: build-quickstart
(docker tag rafaelhdr/glewlwyd-oauth2-server:${VERSION}-quickstart rafaelhdr/glewlwyd-oauth2-server:quickstart && \
docker push rafaelhdr/glewlwyd-oauth2-server:quickstart)