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 committed Mar 21, 2019
1 parent e41e64e commit 37300d7
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 37300d7

Please sign in to comment.