File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 37
37
sh " docker push localhost:5000/java_sample_prod"
38
38
39
39
stage ' deploy production'
40
- sh " make deploy-production"
40
+ sh " make deploy-production-local "
41
41
42
42
}
Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ build-docker-env:
8
8
build-docker-prod-image :
9
9
docker build -t localhost:5000/java_sample_prod .
10
10
11
- deploy-production :
11
+ deploy-production-local :
12
+ - docker rm -f java_sample_prod
13
+ docker run -d --name java_sample_prod -p 8800:8000 localhost:5000/java_sample_prod
14
+
15
+
16
+ deploy-production-ssh :
12
17
- ssh jenkins@localhost docker rm -f java_sample_prod
13
18
ssh jenkins@localhost docker run -d --name java_sample_prod -p 8800:8000 localhost:5000/java_sample_prod
14
19
You can’t perform that action at this time.
0 commit comments