Docker deploy
gitea/vn-support/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2021-04-29 23:48:20 +02:00
parent 451d8eaf5b
commit e204e8cdf6
1 changed files with 12 additions and 1 deletions

13
Jenkinsfile vendored
View File

@ -11,13 +11,24 @@ pipeline {
setEnv() setEnv()
} }
} }
stage('Deploy') { stage('Build') {
when { when {
branch 'master' branch 'master'
} }
environment { environment {
CREDENTIALS = credentials('docker-registry') CREDENTIALS = credentials('docker-registry')
} }
steps {
dockerBuild()
}
}
stage('Deploy') {
when {
branch 'master'
}
environment {
DOCKER_HOST = env.SWARM_HOST
}
steps { steps {
dockerDeploy() dockerDeploy()
} }