Update .gitea/workflows/deploy.yaml
Deploy Dashboard Monitor ke K3s / deploy (push) Failing after 3s Details

This commit is contained in:
Administrator 2026-06-22 17:40:26 +08:00
parent 7a135bf3bd
commit 716307d7f5
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
name: Deploy Dashboard Monitor ke K3s
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy via SSH Lokal
run: |
# SSH ke localhost dan jalankan perintah kubectl langsung di VPS
# Ini mem-bypass masalah Secrets dan Kubeconfig Base64
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl apply -f dashdot-deploy.yaml"
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml rollout status deployment/dashdot"