first commit

This commit is contained in:
hz
2026-05-18 13:00:55 -05:00
commit cbce1590f5
36 changed files with 3575 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: k8s smoke test
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: self-hosted
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Write kubeconfig from secret
env:
KUBECONFIG_CONTENT: ${{ secrets.KUBECONFIG }}
run: |
mkdir -p /tmp/kube
printf '%s\n' "$KUBECONFIG_CONTENT" > /tmp/kube/config
- name: Test kubectl connectivity
env:
KUBECONFIG: /tmp/kube/config
run: |
kubectl get nodes --kubeconfig "${KUBECONFIG}"