From 916b7affec724fc9624d9c5c4413be466c8f4c20 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Tue, 26 May 2026 23:35:52 +0200 Subject: [PATCH] Add Gitea Actions deploy workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deploys CSI controller and node jobs to Nomad on push to main. Runner: nomad.i80.dk (label: nomad) — local nomad job run calls. --- .gitea/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/deploy.yml 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