diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..f0430ed --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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