ci: set directly KUBECONFIG environment secret in GitHub Actions
This commit is contained in:
parent
04b47685c5
commit
98e8250eaa
1 changed files with 2 additions and 6 deletions
8
.github/workflows/deploy-to-staging.yml
vendored
8
.github/workflows/deploy-to-staging.yml
vendored
|
|
@ -82,12 +82,6 @@ jobs:
|
|||
with:
|
||||
version: "${{ env.HELM_VERSION }}"
|
||||
|
||||
- uses: azure/k8s-set-context@v3
|
||||
with:
|
||||
method: kubeconfig
|
||||
kubeconfig: ${{ secrets.KUBECONFIG_CONTENT }}
|
||||
context: kiwi
|
||||
|
||||
# - name: set imagepullsecret
|
||||
# uses: azure/k8s-create-secret@v4
|
||||
# with:
|
||||
|
|
@ -107,6 +101,7 @@ jobs:
|
|||
--timeout 900s \
|
||||
--dry-run=true \
|
||||
--install \
|
||||
--kube-context="kiwi" \
|
||||
--namespace="${{ env.NAMESPACE }}" \
|
||||
-f ./charts/backoffice/values.staging.yaml \
|
||||
--set image.tag="${{ github.ref_name }}-${{ github.sha }}" \
|
||||
|
|
@ -126,6 +121,7 @@ jobs:
|
|||
--timeout 900s \
|
||||
--dry-run=true \
|
||||
--install \
|
||||
--kube-context="kiwi" \
|
||||
--namespace="${{ env.NAMESPACE }}" \
|
||||
-f ./charts/backoffice/values.staging.yaml \
|
||||
--set image.tag="${{ github.ref_name }}-${{ github.sha }}" \
|
||||
|
|
|
|||
Reference in a new issue