File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,9 @@ pipeline {
51
51
sh " docker-compose run --rm package"
52
52
sh " make build-docker-prod-image"
53
53
sh " docker push localhost:5000/java_sample_prod"
54
+ sh " make deploy-production-local"
54
55
}
55
- post {
56
- success {
57
- sh " make deploy-production-local"
58
- }
59
- }
56
+
60
57
}
61
58
}
62
59
}
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ build-docker-prod-image:
9
9
docker build -t localhost:5000/java_sample_prod .
10
10
11
11
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
13
14
14
15
15
16
deploy-production-ssh :
You can’t perform that action at this time.
0 commit comments