use pre-encoded kubeconfig secret
This commit is contained in:
parent
8492f66053
commit
f4e3a8432f
|
@ -69,15 +69,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
KUBECONFIG_FILE: '${{ secrets.RELEASE_KUBECONFIG }}'
|
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
|
- name: Re roll the services
|
||||||
uses: actions-hub/kubectl@master
|
uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ env.RELEASE_KUBECONFIG }}
|
KUBE_CONFIG: ${{ secrets.RELEASE_KUBECONFIG_BASE64 }}
|
||||||
with:
|
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
|
args: rollout restart deployment proxy-service -n budibase && kubectl rollout restart deployment app-service -n budibase && kubectl rollout restart deployment worker-service -n budibase
|
||||||
|
|
||||||
|
|
|
@ -121,15 +121,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
KUBECONFIG_FILE: '${{ secrets.RELEASE_KUBECONFIG }}'
|
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
|
- name: Re roll the services
|
||||||
uses: actions-hub/kubectl@master
|
uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ env.RELEASE_KUBECONFIG }}
|
KUBE_CONFIG: ${{ secrets.RELEASE_KUBECONFIG_BASE64 }}
|
||||||
with:
|
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
|
args: rollout restart deployment proxy-service -n budibase && kubectl rollout restart deployment app-service -n budibase && kubectl rollout restart deployment worker-service -n budibase
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue