46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: runner-smoke
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .gitea/workflows/runner-smoke.yaml
|
|
- bootstrap/gitea-actions/**
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
smoke:
|
|
runs-on: k3s-deploy
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Materialize kubeconfig
|
|
env:
|
|
K3S_KUBECONFIG_B64: ${{ secrets.K3S_KUBECONFIG_B64 }}
|
|
run: |
|
|
test -n "$K3S_KUBECONFIG_B64"
|
|
printf '%s' "$K3S_KUBECONFIG_B64" | base64 -d >/tmp/kubeconfig
|
|
chmod 600 /tmp/kubeconfig
|
|
|
|
- name: Verify repository checkout
|
|
run: |
|
|
pwd
|
|
ls -la
|
|
test -f bootstrap/gitea-actions/kustomization.yaml
|
|
|
|
- name: Install kubectl
|
|
run: |
|
|
curl -fsSL -o /tmp/kubectl https://dl.k8s.io/release/v1.34.6/bin/linux/amd64/kubectl
|
|
install -m 0755 /tmp/kubectl /usr/local/bin/kubectl
|
|
kubectl version --client
|
|
|
|
- name: Verify cluster access
|
|
env:
|
|
KUBECONFIG: /tmp/kubeconfig
|
|
run: |
|
|
kubectl get nodes -o wide
|
|
kubectl -n gitea-actions get deploy,pods
|
|
kubectl -n trade-infra get svc,endpointslices
|