feat: update build and push workflow to use Helm for deployment

This commit is contained in:
stephen schuresko
2025-02-16 20:53:52 -05:00
parent 81a4893096
commit ecd679cbf4

View File

@@ -27,6 +27,12 @@ jobs:
- run: docker build -t kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} . # Build the Docker image
- run: docker push kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} # Push the Docker image
- name: 'Deploy'
uses: deliverybot/helm@v1
with:
release: 'papi'
namespace: 'default'
chart: 'papi-helm/Chart.yaml'
token: '${{ github.token }}'
value-files: ['papi-helm/values.yaml']
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'
run: helm upgrade papi ./papi-helm/ --install --namespace default --set image.tag=${{ steps.extract_branch.outputs.branch }} --kubeconfig $KUBECONFIG_FILE