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
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
# 1. Checkout Code
- name: Checkout Repository
uses: actions/checkout@v4
- name: Deploy with Nomad
uses: qazz92/nomad-deploy@v1
# 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