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()
|
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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue