feat: secure kubeconfig permissions in deployment step of build-and-push workflow
Some checks failed
Build and Push to Private Registry101 / build (push) Successful in 9s
Build and Push to Private Registry101 / deploy (push) Failing after 4s

This commit is contained in:
stephen schuresko
2025-03-07 14:22:32 -05:00
parent 6a8cee2f6e
commit cb150c9abe

View File

@@ -38,7 +38,7 @@ jobs:
- env:
KUBEB64: '${{ secrets.KUBEB64 }}'
name: deploy
run: mkdir -p $HOME/.kube &&echo "$KUBEB64" | base64 -d > $HOME/.kube/config &&
run: mkdir -p $HOME/.kube &&echo "$KUBEB64" | base64 -d > $HOME/.kube/config && chmod 700 $HOME/.kube/config &&
/usr/local/bin/helm upgrade --install papi-${{ steps.extract_branch.outputs.branch }} papi-helm/ -f ./papi-helm/v.prod.yaml --set image.tag=${{ steps.extract_branch.outputs.branch }} --set name=papi-prod # Deploy the Helm chart