Skip to content

Commit

Permalink
chore: add debug kube workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve committed Nov 14, 2024
1 parent cf9855b commit 41ab12a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/debug-kube.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 41ab12a

Please sign in to comment.