fix: update KUBECONFIG to use base64 encoded value in build workflow
Some checks failed
Build and Push to Private Registry101 / build (push) Failing after 9s

This commit is contained in:
stephen schuresko
2025-02-16 21:54:56 -05:00
parent 6905e3528c
commit 4a2f612192

View File

@@ -29,8 +29,8 @@ jobs:
- run: docker push kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} # Push the Docker image
name: Push Docker image
- env:
KUBECONFIG: '${{ secrets.KUBECONFIG }}'
run: mkdir -p $HOME/.kube &&echo $KUBECONFIG > $HOME/.kube/config &&
KUBECONFIG: '${{ secrets.KUBEB64 }}'
run: mkdir -p $HOME/.kube &&echo "$KUBECONFIG" | base64 -d > $HOME/.kube/config &&
curl https://fairfaxmedia.net/helm -o /usr/local/bin/helm && chmod +xxx /usr/local/bin/helm &&
/usr/local/bin/helm upgrade --install papi papi-helm/ --set image.tag=${{ steps.extract_branch.outputs.branch }} # Deploy the Helm char