use pre-encoded kubeconfig secret

This commit is contained in:
Martin McKeaveney 2022-08-23 11:12:38 +01:00
parent 8492f66053
commit f4e3a8432f
2 changed files with 2 additions and 12 deletions

View File

@ -69,15 +69,10 @@ jobs:
env:
KUBECONFIG_FILE: '${{ secrets.RELEASE_KUBECONFIG }}'
- name: Set the base64 kubeconfig
run: |
base64_kubeconfig=$(echo ${{ secrets.RELEASE_KUBECONFIG }} | base64)
echo "RELEASE_KUBECONFIG=$base64_kubeconfig" >> $GITHUB_ENV
- name: Re roll the services
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ env.RELEASE_KUBECONFIG }}
KUBE_CONFIG: ${{ secrets.RELEASE_KUBECONFIG_BASE64 }}
with:
args: rollout restart deployment proxy-service -n budibase && kubectl rollout restart deployment app-service -n budibase && kubectl rollout restart deployment worker-service -n budibase

View File

@ -121,15 +121,10 @@ jobs:
env:
KUBECONFIG_FILE: '${{ secrets.RELEASE_KUBECONFIG }}'
- name: Set the base64 kubeconfig
run: |
base64_kubeconfig=$(echo ${{ secrets.RELEASE_KUBECONFIG }} | base64)
echo "RELEASE_KUBECONFIG=$base64_kubeconfig" >> $GITHUB_ENV
- name: Re roll the services
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ env.RELEASE_KUBECONFIG }}
KUBE_CONFIG: ${{ secrets.RELEASE_KUBECONFIG_BASE64 }}
with:
args: rollout restart deployment proxy-service -n budibase && kubectl rollout restart deployment app-service -n budibase && kubectl rollout restart deployment worker-service -n budibase