Skip to content

Commit 4e4c69d

Browse files
committed
update
1 parent a6107f2 commit 4e4c69d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Jenkinsfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@ pipeline {
5151
sh "docker-compose run --rm package"
5252
sh "make build-docker-prod-image"
5353
sh "docker push localhost:5000/java_sample_prod"
54+
sh "make deploy-production-local"
5455
}
55-
post {
56-
success {
57-
sh "make deploy-production-local"
58-
}
59-
}
56+
6057
}
6158
}
6259
}

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ build-docker-prod-image:
99
docker build -t localhost:5000/java_sample_prod .
1010

1111
deploy-production-local:
12-
docker run -d --name java_sample_prod -p 8800:8000 localhost:5000/java_sample_prod
12+
- docker rm -f java_sample_prod
13+
- docker run -d --name java_sample_prod -p 8800:8000 localhost:5000/java_sample_prod
1314

1415

1516
deploy-production-ssh:

0 commit comments

Comments
 (0)