feat(actions): bootstrap sol runner
All checks were successful
runner-smoke / smoke (push) Successful in 36s
All checks were successful
runner-smoke / smoke (push) Successful in 36s
This commit is contained in:
45
.gitea/workflows/runner-smoke.yaml
Normal file
45
.gitea/workflows/runner-smoke.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
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
|
||||
Reference in New Issue
Block a user