Add .gitea/workflows/deploy.yaml
This commit is contained in:
parent
c9d2abdbec
commit
c5eab45e98
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Deploy Dashboard Monitor ke K3s
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 1. Tarik Kode dari Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 2. Eksekusi Deployment ke Kubernetes
|
||||||
|
uses: actions-hub/kubectl@master
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBECONFIG }}
|
||||||
|
with:
|
||||||
|
args: apply -f dashdot-deploy.yaml
|
||||||
|
|
||||||
|
- name: 3. Cek Status Aplikasi
|
||||||
|
uses: actions-hub/kubectl@master
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBECONFIG }}
|
||||||
|
with:
|
||||||
|
args: rollout status deployment/dashdot
|
||||||
Loading…
Reference in New Issue