-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 710 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 710 Bytes
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
version?=0.0.0
changelist?=-SNAPSHOT
args?=
run:
./mvnw clean compile spring-boot:run -Dspring-boot.run.profiles=local $(args)
build:
./mvnw clean compile $(args)
test:
./mvnw test $(args)
quality:
mvn test -Pcoverage jacoco:report sonar:sonar $(args)
package:
./mvnw clean package spring-boot:repackage -Dmaven.test.skip=true -Drevision=$(version) -Dchangelist=$(changelist) $(args)
docker build -t sanadhis/data-api:$(version)$(changelist) -f Dockerfile $(PWD) --build-arg artifactId=data-api --build-arg version=$(version) --build-arg changelist=$(changelist)
publish:
docker push sanadhis/data-api:$(version)$(changelist)
deploy:
version=$(version) changelist=$(changelist) docker-compose up