server-monitor/.gitea/workflows/deploy.yaml

21 lines
653 B
YAML

name: Deploy Dashboard Monitor ke K3s
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy dengan Konfigurasi Mount
env:
# Memaksa kubectl membaca file yang kita mount di docker-compose
KUBECONFIG: /root/.kube/config
run: |
curl -LO "https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl"
chmod +x ./kubectl
echo "=> Menjalankan kubectl dengan konfigurasi yang tepat..."
./kubectl get nodes
./kubectl apply -f dashdot-deploy.yaml
./kubectl rollout status deployment/dashdot