22 lines
738 B
YAML
22 lines
738 B
YAML
name: Deploy Dashboard Monitor ke K3s
|
|
on: [push]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Deploy Tanpa SSH Tanpa Secrets
|
|
run: |
|
|
echo "=> Mengambil konfigurasi langsung dari host..."
|
|
# Langsung menggunakan file asli dari VPS
|
|
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
|
|
|
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 |