Skip to content

Commit

Permalink
adding autodeploy to jenkinsfile (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
decarboxy authored Mar 8, 2019
1 parent 1c6e149 commit 87f2aea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ pipeline {
}
}

stage('Deploy') {
steps {
script {
if (GIT_BRANCH in ['rc', 'release', 'master_engineering']) {
NAMESPACE = k8s.getNamespaceFromBranch(GIT_BRANCH) ?: 'development'
k8s.updateImageTag(NAMESPACE, docker2.imageTag(), 'gcr.io/cyrus-containers/argo-rest', GIT_BRANCH)
}
}
}
}

}
}

0 comments on commit 87f2aea

Please sign in to comment.