Update Jenkinsfile

This commit is contained in:
Brady-Malott 2023-02-17 18:28:05 -05:00 committed by GitHub
parent 630fb4ca2a
commit 18a4d83c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ pipeline {
//sh 'if [[ $(docker ps -q --filter ancestor=microblog:latest | wc -l) != 0 ]]; then docker stop $(docker ps -q --filter ancestor=microblog:latest) fi'
sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest) || true && docker rm $(docker ps -q --filter ancestor=microblog:latest) || true'
// Deploy new container
sh 'docker run -d -p 5000:5000 microblog:latest'
sh 'docker run --name microblog -d -p 8000:5000 --rm microblog:latest'
}
}
stage('Hello To Discord') {