Pull newly built image first
This commit is contained in:
parent
a3bd7bf423
commit
16c34a0bf7
1 changed files with 3 additions and 1 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -32,6 +32,8 @@ node {
|
|||
}
|
||||
|
||||
stage('Deploy staging') {
|
||||
sh 'docker-compose --project-directory /opt/containers/pflaenz.li --file /opt/containers/pflaenz.li/docker-compose.yml up -d'
|
||||
sh 'cd /opt/containers/pflaenz.li'
|
||||
sh 'docker-compose pull'
|
||||
sh 'docker-compose up -d'
|
||||
}
|
||||
}
|
Reference in a new issue