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
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: