Docker stack deploy
gitea/vn-autoconfig/pipeline/head This commit looks good
Details
gitea/vn-autoconfig/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a9f080cd2d
commit
50d581af94
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue