debug: check NOMAD_ADDR and reachability in deploy step

This commit is contained in:
Christopher Mühl 2026-02-19 01:43:27 +01:00
parent b7ba4c1c0a
commit 694c591332
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -77,6 +77,8 @@ runs:
- name: Deploy Nomad job
shell: bash
run: |
echo "NOMAD_ADDR=${NOMAD_ADDR}"
curl -sf --max-time 5 "${NOMAD_ADDR}/v1/status/leader" || echo "Nomad unreachable"
nix eval --raw --impure \
--expr "import \"${{ github.action_path }}/nomad-job.nix\"" \
| nomad job run -json -