conditional deploy
This commit is contained in:
parent
f97c40bbeb
commit
a2f2a05679
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -15,11 +15,13 @@ node {
|
||||
|
||||
stage("Publish") {
|
||||
dockerImage.push()
|
||||
dockerImage.push("production")
|
||||
dockerImage.push(env.JOB_BASE_NAME)
|
||||
}
|
||||
|
||||
if (env.BRANCH_NAME == "production") {
|
||||
stage("Deploy") {
|
||||
deploy("parsley", "./docker-compose-rlyeh.yml")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user