Trying to have a chatservice
Some checks failed
Deploy continuwuity to Nomad / nomad job run continuwuity (push) Failing after 6s

This commit is contained in:
2026-06-29 16:15:06 +02:00
parent 79226813be
commit ab37879f08
2 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
name: Deploy continuwuity to Nomad
on:
push:
branches: [main]
paths:
- 'continuwuity.hcl'
- '.gitea/workflows/deploy.yml'
workflow_dispatch:
jobs:
deploy:
name: nomad job run continuwuity
runs-on: debian-host
env:
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Check nomad CLI
run: |
if ! command -v nomad >/dev/null 2>&1; then
echo "❌ nomad CLI not found on the runner (debian-host). Install it on the runner host."
exit 1
fi
nomad version
- name: Validate job
run: nomad job validate continuwuity.hcl
- name: Plan (diff, non-blocking)
run: |
# plan exit codes: 0 = no changes, 1 = changes will be made, anything else = error
set +e
nomad job plan continuwuity.hcl
code=$?
set -e
if [ "$code" -gt 1 ]; then
echo "❌ nomad job plan failed (exit $code)"
exit "$code"
fi
echo "✅ plan ok (exit $code)"
- name: Run
run: nomad job run continuwuity.hcl
- name: Status
run: nomad job status continuwuity