Skip to content

Commit 67feb6b

Browse files
committed
update
1 parent 054c786 commit 67feb6b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ node {
3737
sh "docker push localhost:5000/java_sample_prod"
3838

3939
stage 'deploy production'
40-
sh "make deploy-production"
40+
sh "make deploy-production-local"
4141

4242
}

Makefile

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

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:
1217
- ssh jenkins@localhost docker rm -f java_sample_prod
1318
ssh jenkins@localhost docker run -d --name java_sample_prod -p 8800:8000 localhost:5000/java_sample_prod
1419

0 commit comments

Comments
 (0)