forked from yuzutech/kroki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 1.83 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
35
36
37
38
39
40
41
42
43
LATEST_VERSION = 0.0.4
default:
installLocalDependencies:
mvn install:install-file -Dfile=./umlet/lib/umlet-mini-14.3.0.jar -DgroupId=com.umlet -DartifactId=umlet-mini -Dversion=14.3.0 -Dpackaging=jar
mvn install:install-file -Dfile=./server/lib/ditaa-1.3.13.jar -DgroupId=ditaa -DartifactId=ditaa -Dversion=1.3.13 -Dpackaging=jar
mvn install:install-file -Dfile=./server/lib/ditaamini-0.11.jar -DgroupId=ditaa -DartifactId=ditaa-mini -Dversion=0.11 -Dpackaging=jar
buildServer:
mvn clean package
buildDockerImages:
cd nomnoml && $(MAKE) package
docker build -f server/ops/docker/build-static-erd -t kroki-builder-static-erd .
docker build -f server/ops/docker/build-static-svgbob -t kroki-builder-static-svgbob .
cd server && $(MAKE) package
cd blockdiag && $(MAKE) package
cd mermaid && $(MAKE) package
tagDockerImages:
docker tag kroki-builder-static-erd:latest kroki-builder-static-erd:0.1.3.0
docker tag kroki-builder-static-svgbob:latest kroki-builder-static-svgbob:0.4.1
docker tag kroki-builder-nomnoml:latest kroki-builder-nomnoml:0.3.0
showExamples:
python blockdiag/examples.py
releaseDockerImages:
docker tag yuzutech/kroki:latest yuzutech/kroki:$(LATEST_VERSION)
docker tag yuzutech/kroki-blockdiag:latest yuzutech/kroki-blockdiag:$(LATEST_VERSION)
docker tag yuzutech/kroki-mermaid:latest yuzutech/kroki-mermaid:$(LATEST_VERSION)
docker tag yuzutech/kroki:latest yuzutech/kroki:latest
docker tag yuzutech/kroki-blockdiag:latest yuzutech/kroki-blockdiag:latest
docker tag yuzutech/kroki-mermaid:latest yuzutech/kroki-mermaid:latest
pushDockerImages:
docker push yuzutech/kroki:latest
docker push yuzutech/kroki-blockdiag:latest
docker push yuzutech/kroki-mermaid:latest
docker push yuzutech/kroki:$(LATEST_VERSION)
docker push yuzutech/kroki-blockdiag:$(LATEST_VERSION)
docker push yuzutech/kroki-mermaid:$(LATEST_VERSION)