Nomad changes again
Some checks failed
Deploy continuwuity to Nomad / nomad job run continuwuity (push) Failing after 59s

This commit is contained in:
2026-06-29 16:28:14 +02:00
parent d9eaa82435
commit 678a4afe5e
2 changed files with 27 additions and 2 deletions

View File

@@ -42,6 +42,30 @@ jobs:
- name: Validate job - name: Validate job
run: nomad job validate continuwuity.hcl run: nomad job validate continuwuity.hcl
- name: Mirror image to registry.i80.dk
env:
UPSTREAM: forgejo.ellis.link/continuwuation/continuwuity:latest
IMAGE: registry.i80.dk/continuwuity
REGISTRY: registry.i80.dk
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
if ! command -v docker >/dev/null 2>&1; then
echo "❌ docker not found on the runner — needed to mirror the image."
exit 1
fi
if [ -n "$REGISTRY_USER" ]; then
echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY" -u "$REGISTRY_USER" --password-stdin
else
echo " REGISTRY_USER not set — assuming anonymous/pre-configured push to $REGISTRY"
fi
docker pull "$UPSTREAM"
docker tag "$UPSTREAM" "$IMAGE:latest"
docker tag "$UPSTREAM" "$IMAGE:${{ github.sha }}"
docker push "$IMAGE:latest"
docker push "$IMAGE:${{ github.sha }}"
echo "✅ mirrored $UPSTREAM -> $IMAGE:latest (+ :${{ github.sha }} for rollback)"
- name: Plan (diff, non-blocking) - name: Plan (diff, non-blocking)
run: | run: |
# plan exit codes: 0 = no changes, 1 = changes will be made, anything else = error # plan exit codes: 0 = no changes, 1 = changes will be made, anything else = error

View File

@@ -127,8 +127,9 @@ EOF
} }
config { config {
# TODO: pin to a released tag instead of :latest before going to prod. # Mirrored from upstream into registry.i80.dk by the deploy workflow.
image = "forgejo.ellis.link/continuwuation/continuwuity:latest" # Must match IMAGE in .gitea/workflows/deploy.yml.
image = "registry.i80.dk/continuwuity:latest"
ports = ["http"] ports = ["http"]
force_pull = true # required with :latest — otherwise Nomad reuses the cached image on redeploy force_pull = true # required with :latest — otherwise Nomad reuses the cached image on redeploy
} }