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