debug: check NOMAD_ADDR and reachability in deploy step
This commit is contained in:
parent
b7ba4c1c0a
commit
694c591332
1 changed files with 2 additions and 0 deletions
|
|
@ -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 -
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue