From 82dd60bccc344a3e0bc46f832b0fe7d377b311cb Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 15 Dec 2025 07:22:18 -0800 Subject: [PATCH] sync --- .github/workflows/nomad-deploy.yml | 35 ++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nomad-deploy.yml b/.github/workflows/nomad-deploy.yml index f9d8d2c..18f431c 100644 --- a/.github/workflows/nomad-deploy.yml +++ b/.github/workflows/nomad-deploy.yml @@ -7,18 +7,31 @@ on: - completed workflow_dispatch: # Allows manual triggering for testing + + jobs: - deploy: + nomad: runs-on: ubuntu-latest - # Run if manually triggered OR if the build workflow succeeded - if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} - + name: Deploy to Nomad + steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Deploy with Nomad - uses: qazz92/nomad-deploy@v1 + # 1. Checkout Code + - name: Checkout Repository + uses: actions/checkout@v4 + + # 2. Install Nomad CLI + - name: Setup Nomad CLI + uses: hashicorp/setup-nomad@main with: - address: http://nomad.service.dc1.consul:4646 - job: fitbit-garmin-sync.nomad + version: '1.10.0' # Use your desired version or remove for 'latest' + + # 3. Deploy the Nomad Job + - name: Deploy Nomad Job + id: deploy + env: + # REQUIRED: Set the Nomad server address + NOMAD_ADDR: http://nomad.service.dc1.consul:4646 + + run: | + nomad status + nomad job run fitbit-garmin-sync.nomad