Fixed setup script

This commit is contained in:
2025-12-27 13:33:17 -05:00
parent aebff3da61
commit a3df4cdadb

View File

@@ -23,10 +23,27 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Nomad - name: Install Nomad CLI (Universal)
uses: hashicorp/setup-nomad@main run: |
with: # 1. Detect Architecture (amd64 or arm64)
version: '1.9.2' 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 - name: Run Deploy
env: env: