From 98e8250eaa531c6f0f7f8f6ae328810cf7fc0639 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 3 Jul 2023 19:48:47 +0200 Subject: [PATCH] ci: set directly KUBECONFIG environment secret in GitHub Actions --- .github/workflows/deploy-to-staging.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-to-staging.yml b/.github/workflows/deploy-to-staging.yml index c4fdf01..74ae17d 100644 --- a/.github/workflows/deploy-to-staging.yml +++ b/.github/workflows/deploy-to-staging.yml @@ -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 }}" \