sync
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 39s

This commit is contained in:
2025-12-15 07:22:18 -08:00
parent 829def5138
commit 82dd60bccc

View File

@@ -7,18 +7,31 @@ on:
- completed - completed
workflow_dispatch: # Allows manual triggering for testing workflow_dispatch: # Allows manual triggering for testing
jobs: jobs:
deploy: nomad:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Run if manually triggered OR if the build workflow succeeded name: Deploy to Nomad
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
steps: steps:
- name: Checkout code # 1. Checkout Code
uses: actions/checkout@v3 - name: Checkout Repository
uses: actions/checkout@v4
- name: Deploy with Nomad # 2. Install Nomad CLI
uses: qazz92/nomad-deploy@v1 - name: Setup Nomad CLI
uses: hashicorp/setup-nomad@main
with: with:
address: http://nomad.service.dc1.consul:4646 version: '1.10.0' # Use your desired version or remove for 'latest'
job: fitbit-garmin-sync.nomad
# 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