diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index a2e2b45..f09605f 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -58,3 +58,23 @@ jobs: name: go-api-binaries path: build/ + k8s-some-test: + name: Kubernetes Smoke Test + runs-on: docker-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Configure kubeconfig + run: | + mkdir -p ~/.kube + echo "$KUBECONFIG_GITEA" > ~/.kube/config + chmod 600 ~/.kube/config + env: + KUBECONFIG_GITEA: ${{ secrets.KUBECONFIG_GITEA }} + + - name: Kubectl test + run: kubectl version --client + + - name: K3S Cluster Connection Test + run: kubectl get nodes -o wide