-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (27 loc) · 849 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
39
40
41
all: build
build: build-jar build-docker
build-jar:
mvn package
build-docker:
docker build -t csms/coffee-society-accounting:latest .
clean:
mvn clean
analyze:
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package org.jacoco:jacoco-maven-plugin:report sonar:sonar
run-jar:
java -jar target/coffee-society-accounting*.jar
run-docker:
docker run -d --name coffee-society-accounting csms/coffee-society-accounting
tag:
docker tag csms/coffee-society-accounting csms/coffee-society-accounting:${TAG}
push-latest:
docker push csms/coffee-society-accounting:latest
push-tag:
docker push csms/coffee-society-accounting:${TAG}
docker-login:
@docker login -u "${DOCKER_ID}" -p "${DOCKER_PASS}"
docker-run: run-docker
docker-remove:
docker rm -f coffee-society-accounting
docker-logs:
docker logs coffee-society-accounting