From a3df4cdadbcbfe59396d7c1f02d597a37bed786c Mon Sep 17 00:00:00 2001 From: Preston Hunter Date: Sat, 27 Dec 2025 13:33:17 -0500 Subject: [PATCH] Fixed setup script --- .gitea/workflows/deploy.yaml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 1a40212..b314234 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -23,10 +23,27 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup Nomad - uses: hashicorp/setup-nomad@main - with: - version: '1.9.2' + - name: Install Nomad CLI (Universal) + run: | + # 1. Detect Architecture (amd64 or arm64) + ARCH="amd64" + if [ "$(uname -m)" = "aarch64" ]; then ARCH="arm64"; fi + echo "Detected architecture: $ARCH" + + # 2. Install Unzip (Required for HashiCorp files) + apt-get update && apt-get install -y unzip curl + + # 3. Download Nomad 1.9.2 + NOMAD_VER="1.9.2" + curl -L -o nomad.zip "https://releases.hashicorp.com/nomad/${NOMAD_VER}/nomad_${NOMAD_VER}_linux_${ARCH}.zip" + + # 4. Install + unzip nomad.zip + mv nomad /usr/local/bin/ + chmod +x /usr/local/bin/nomad + + # 5. Verify + nomad --version - name: Run Deploy env: