Skip to content

Commit

Permalink
chore: debug kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Aug 30, 2023
1 parent e35f4b1 commit 3c03657
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/debug-kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
dump:
name: Debug kube
name: Debug kubeconfig
runs-on: ubuntu-latest
steps:
- uses: azure/setup-kubectl@v3
Expand All @@ -19,4 +19,16 @@ jobs:
echo -n "${{secrets.KUBECONFIG}}" | base64 --decode > kubeconfig
- name: list kube data
run: |
KUBECONFIG=./kubeconfig kubectl config get-contexts
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

0 comments on commit 3c03657

Please sign in to comment.