From 41ab12afbd454c7b2017b5b86a68fb4dad7a107b Mon Sep 17 00:00:00 2001 From: Adrien Chauve Date: Thu, 14 Nov 2024 15:55:39 +0100 Subject: [PATCH] chore: add debug kube workflow --- .github/workflows/debug-kube.yaml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/debug-kube.yaml diff --git a/.github/workflows/debug-kube.yaml b/.github/workflows/debug-kube.yaml new file mode 100644 index 000000000..46d23b192 --- /dev/null +++ b/.github/workflows/debug-kube.yaml @@ -0,0 +1,34 @@ +name: Debug kube + +on: + workflow_dispatch: + push: + branches: + - "feat/**" + - "fix/**" + + +jobs: + dump: + name: Debug kubeconfig + runs-on: ubuntu-latest + steps: + - uses: azure/setup-kubectl@v3 + - name: extract kubeconfig + run: | + echo -n "${{secrets.KUBECONFIG}}" | base64 --decode > kubeconfig + - name: list kube data + run: | + KUBECONFIG=./kubeconfig kubectl config get-contexts + dump-prod: + name: Debug kubeconfig production + runs-on: ubuntu-latest + environment: production + steps: + - uses: azure/setup-kubectl@v3 + - name: extract kubeconfig + run: | + echo -n "${{secrets.KUBECONFIG}}" | base64 --decode > kubeconfig + - name: list kube data + run: | + KUBECONFIG=./kubeconfig kubectl config get-contexts