Docker deploy
gitea/vn-support/pipeline/head There was a failure building this commit
Details
gitea/vn-support/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
451d8eaf5b
commit
e204e8cdf6
|
@ -11,13 +11,24 @@ pipeline {
|
|||
setEnv()
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
stage('Build') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
environment {
|
||||
CREDENTIALS = credentials('docker-registry')
|
||||
}
|
||||
steps {
|
||||
dockerBuild()
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
environment {
|
||||
DOCKER_HOST = env.SWARM_HOST
|
||||
}
|
||||
steps {
|
||||
dockerDeploy()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue