Skip to content

Test gh deployment workflow #1

Test gh deployment workflow

Test gh deployment workflow #1

Workflow file for this run

name: Deploy to K3s
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Connect to Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Configure Kubeconfig
run: |
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG }}" > ~/.kube/config
chmod 600 ~/.kube/config
- name: Test Cluster Connectivity
run: |
# This confirms the runner can reach the K3s API and is authenticated
kubectl get nodes
- name: Deploy to K3s
run: |
kubectl apply -f k8s/