Update Jenkinsfile

This commit is contained in:
Brady-Malott 2023-02-17 17:52:42 -05:00 committed by GitHub
parent 69c31ec36d
commit bb4f23e397
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

@ -10,7 +10,7 @@ pipeline {
stage('Deploy') {
steps {
// Stop running microblog container
sh 'if [[ $(docker ps -q --filter ancestor=microblog:latest | wc -l) == 0 ]]; then docker stop $(docker ps -q --filter ancestor=microblog:latest) fi'
sh 'if [[ $(docker ps -q --filter ancestor=microblog:latest | wc -l) != 0 ]]; then docker stop $(docker ps -q --filter ancestor=microblog:latest) fi'
// Deploy new container
sh 'docker run -d -p 5000:5000 microblog:latest'
}