feat: update deployment step in build-and-push workflow for production environment
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 9s
Build and Push to Private Registry101 / deploy (push) Successful in 7s

This commit is contained in:
stephen schuresko
2025-02-20 12:59:53 -05:00
parent a44f066d6b
commit 04b678c2c1

View File

@@ -8,8 +8,6 @@ on:
push:
branches:
- master
- dev
- qa
@@ -39,7 +37,8 @@ jobs:
- uses: actions/checkout@v3
- env:
KUBEB64: '${{ secrets.KUBEB64 }}'
name: deploy
run: mkdir -p $HOME/.kube &&echo "$KUBEB64" | base64 -d > $HOME/.kube/config &&
/usr/local/bin/helm upgrade --install papi-git-${{ steps.extract_branch.outputs.branch }} papi-helm/ -f ./papi-helm/v.${{ steps.extract_branch.outputs.branch }}.yaml --set image.tag=${{ steps.extract_branch.outputs.branch }} --set name=papi-${{ steps.extract_branch.outputs.branch }} # Deploy the Helm chart
/usr/local/bin/helm upgrade --install papi-prod papi-helm/ -f ./papi-helm/v.prod.yaml --set image.tag=${{ steps.extract_branch.outputs.branch }} --set name=papi-prod # Deploy the Helm chart