- preflight --live: Ollama/Qdrant reachable from the container, required Ollama models present, 768 dimensions; clear abort instead of traceback. Static check rejects unset or container-local service URLs. - deploy/smoke.py: non-writing post-start check via published ports. - deploy/deploy.sh: test (no network), build, preflight, up --wait, smoke; prod rolls back to the last good image tag. - Workflow templates deploy-dev.yml (push develop) and deploy-prod.yml (push main) following the Kansho pattern; not under .gitea/workflows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
# VORLAGE, NICHT AKTIV: liegt absichtlich nicht unter .gitea/workflows/.
|
|
# Aktivierung erst mit Freigabe (Gate G3, Dev-Start auf dem Runner-Host):
|
|
# git mv deploy/gitea-workflows/deploy-dev.yml .gitea/workflows/deploy-dev.yml
|
|
# Danach deployt jeder Push auf develop den Dev-Stack (Muster wie Kansho).
|
|
# Ablauf und Abbruchbedingungen: deploy/deploy.sh.
|
|
|
|
name: Deploy mindnet DEV (Container)
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: deploy-mindnet-dev
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
# Runner auf dem Zielhost (heute llm-node). Bei einem Umzug auf einen anderen
|
|
# Mini-PC nur das Label und den Pfad der env-Datei anpassen.
|
|
runs-on: linux_host
|
|
env:
|
|
# Liegt auf dem Host, außerhalb von Git (Vorlage: deploy/env/dev.env.example).
|
|
MINDNET_ENV_FILE: /home/llmadmin/docker/mindnet-dev/dev.env
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Test, Build, Preflight, Start, Smoke
|
|
run: bash deploy/deploy.sh dev
|