conditional deploy

This commit is contained in:
Dan Elbert 2018-07-22 17:14:34 -05:00
parent f97c40bbeb
commit a2f2a05679

8
Jenkinsfile vendored
View File

@ -15,11 +15,13 @@ node {
stage("Publish") {
dockerImage.push()
dockerImage.push("production")
dockerImage.push(env.JOB_BASE_NAME)
}
stage("Deploy") {
deploy("parsley", "./docker-compose-rlyeh.yml")
if (env.BRANCH_NAME == "production") {
stage("Deploy") {
deploy("parsley", "./docker-compose-rlyeh.yml")
}
}
}
}