Files
tonePage/.gitea/workflows/deploy.yml
tone 2ca6a1ec42
All checks were successful
Deploy to K3s / deploy (push) Successful in 3s
debug: .....
2025-12-20 15:12:38 +08:00

27 lines
552 B
YAML

name: Deploy to K3s
on:
push:
branches:
- master
jobs:
deploy:
container:
image: localhost:5000/tiny-ci-runner:latest
runs-on: ubuntu-latest
steps:
- name: Write kubeconfig
run: |
mkdir -p /tmp/.kube
cat << 'EOF' > /tmp/.kube/config
${{ secrets.KUBECONFIG_DATA }}
EOF
chmod 600 /tmp/.kube/config
- name: Verify kubeconfig
env:
KUBECONFIG: /tmp/.kube/config
run: |
kubectl config view
kubectl get nodes