Add Gitea Actions deploy workflow
Deploys CSI controller and node jobs to Nomad on push to main. Runner: nomad.i80.dk (label: nomad) — local nomad job run calls.
This commit is contained in:
29
.gitea/workflows/deploy.yml
Normal file
29
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Deploy CSI Jobs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'csi/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: nomad
|
||||||
|
steps:
|
||||||
|
- name: Pull latest
|
||||||
|
run: |
|
||||||
|
cd /opt/nomad-csi
|
||||||
|
git pull
|
||||||
|
|
||||||
|
- name: Deploy controller
|
||||||
|
run: |
|
||||||
|
nomad job run /opt/nomad-csi/csi/controller.nomad
|
||||||
|
|
||||||
|
- name: Deploy node plugin
|
||||||
|
run: |
|
||||||
|
nomad job run /opt/nomad-csi/csi/node.nomad
|
||||||
|
|
||||||
|
- name: Verify CSI plugin healthy
|
||||||
|
run: |
|
||||||
|
sleep 10
|
||||||
|
nomad plugin status org.democratic-csi.nfs
|
||||||
Reference in New Issue
Block a user