Skip to content

Commit

Permalink
Add prod deploy to jenkinsfile on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdaily committed Jun 27, 2023
1 parent 05b8bc3 commit 7f63b94
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ pipeline {
}
}
}
stage('DeployProdStack') {
agent {
label 'helm'
}
when {
buildingTag();
}
steps {
script {
withKubeConfig([credentialsId: "prod-kube-config"]) {
sh('helm repo update && helm dependency update helm-chart/banzai/ '+
'&& helm package helm-chart/banzai --app-version="${GIT_DESCRIPTION}" --version="${GIT_DESCRIPTION}" ' +
'&& helm upgrade --install banzai banzai-"${GIT_DESCRIPTION}".tgz --namespace=prod ' +
'--set image.tag="${GIT_DESCRIPTION}" --values=helm-chart/banzai/values-prod.yaml ' +
'--force --atomic --timeout=3600s')
}
}
}
}
stage('DeployTestStack') {
when {
anyOf {
Expand Down

0 comments on commit 7f63b94

Please sign in to comment.