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

This commit is contained in:
Administrator 2026-06-22 17:41:06 +08:00
parent 716307d7f5
commit 2badbda0a0
1 changed files with 12 additions and 5 deletions

View File

@ -7,9 +7,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Deploy via SSH Lokal - name: Deploy Tanpa SSH Tanpa Secrets
run: | run: |
# SSH ke localhost dan jalankan perintah kubectl langsung di VPS echo "=> Mengambil konfigurasi langsung dari host..."
# Ini mem-bypass masalah Secrets dan Kubeconfig Base64 # Langsung menggunakan file asli dari VPS
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl apply -f dashdot-deploy.yaml" export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml rollout status deployment/dashdot"
echo "=> Menjalankan perintah kubectl..."
# Gunakan path absolut ke kubectl yang terinstal di VPS atau download baru
curl -LO "https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl"
chmod +x ./kubectl
./kubectl apply -f dashdot-deploy.yaml
./kubectl rollout status deployment/dashdot