New staging deployment

This commit is contained in:
Jannis Portmann 2021-12-25 14:33:17 +01:00
parent 6e240f95cf
commit d9098182d4

7
Jenkinsfile vendored
View file

@ -24,6 +24,13 @@ node {
} }
} }
stage('Push image') {
docker.withRegistry('https://hub.thisfro.ch', 'git') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}
stage('Deploy staging') { stage('Deploy staging') {
sh 'docker-compose --project-directory /opt/containers/pflaenz.li --file /opt/containers/pflaenz.li/docker-compose.yml up -d' sh 'docker-compose --project-directory /opt/containers/pflaenz.li --file /opt/containers/pflaenz.li/docker-compose.yml up -d'
} }