Docker stack deploy
gitea/vn-autoconfig/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2021-04-30 00:03:39 +02:00
parent a9f080cd2d
commit 50d581af94
1 changed files with 13 additions and 2 deletions

15
Jenkinsfile vendored
View File

@ -11,7 +11,7 @@ pipeline {
setEnv()
}
}
stage('Deploy') {
stage('Build') {
when {
branch 'master'
}
@ -19,7 +19,18 @@ pipeline {
CREDENTIALS = credentials('docker-registry')
}
steps {
dockerDeploy()
dockerBuild()
}
}
stage('Deploy') {
when {
branch 'master'
}
environment {
DOCKER_HOST = "${env.SWARM_HOST}"
}
steps {
dockerStackDeploy()
}
}
}