forked from FudanSELab/train-ticket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 561 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
# Codewisdom Train-Ticket system
Repo=codewisdom
Tag=latest
# build image
.PHONY: build
build: clean-image package build-image
.PHONY: package
package:
@mvn clean package -DskipTests
.PHONY: build-image
build-image:
@hack/build-image.sh $(Repo) $(Tag)
# push image
.PHONY: push-image
push-image:
@hack/push-image.sh $(Repo)
.PHONY: publish-image
publish-image:
@script/publish-docker-images.sh $(Repo) $(Tag)
.PHONY: clean
clean:
@mvn clean
@hack/clean-image.sh $(Repo)
# clean image
.PHONY: clean-image
clean-image:
@hack/clean-image.sh $(Repo)