-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 782 Bytes
/
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
35
36
37
38
.PHONY: all base sphinx html tex
SUFFIX = $(shell git describe)
APP = sphinx-plantuml
ID = stigsm
all: base sphinx html tex
push: base-push sphinx-push html-push tex-push
base: base-tag
sphinx: base sphinx-tag
html: sphinx html-tag
tex: sphinx tex-tag
%-build:
@echo
##############################
## Building $(APP)-$*:candidate
##
docker build -t $(APP)-$*:candidate $*
%-tag: %-build
@echo
##############################
## Tagging $(ID)/$(APP)-$*
##
docker tag $(APP)-$*:candidate $(ID)/$(APP)-$*:${SUFFIX}
docker tag $(APP)-$*:candidate $(ID)/$(APP)-$*:latest
docker rmi $(APP)-$*:candidate
%-push: %-tag
@echo
##############################
## pushing $(ID)/$(APP)-$*
##
docker push $(ID)/$(APP)-$*:${SUFFIX}
docker push $(ID)/$(APP)-$*:latest