Activate dev container deploy on push to develop
- .gitea/workflows/deploy-dev.yml: prepares the host (synthetic test vault, dev.env from the example on first run, never overwritten), then runs deploy/deploy.sh dev. Prod workflow stays an inactive template. - deploy/testvault: synthetic notes from scripts/make_test_vault.py plus synthetic edge_vocabulary.md/graph_schema.md (vault sentinel). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8f9f83aa79
commit
9d5b52a3c1
12 files changed
+237
-39
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# Mindnet DEV als Container: jeder Push auf develop baut und startet den Dev-Stack
|
||||
# auf dem Runner-Host (Muster wie Kansho). Läuft parallel zu systemd; Prod-Qdrant,
|
||||
# Prod-Vault und die systemd-Dienste werden nicht angefasst.
|
||||
# Ablauf und Abbruchbedingungen: deploy/deploy.sh. Prod-Gegenstück (noch inaktiv):
|
||||
# deploy/gitea-workflows/deploy-prod.yml.
|
||||
|
||||
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: Host vorbereiten (synthetischer Test-Vault, dev.env beim ersten Lauf)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
HOST_DIR="$(dirname "$MINDNET_ENV_FILE")"
|
||||
install -d -m 0750 "$HOST_DIR"
|
||||
install -d -m 0755 "$HOST_DIR/testvault"
|
||||
# Nur synthetische Daten aus dem Repo; für UID 10001 im Container lesbar.
|
||||
rsync -a --delete --chmod=D755,F644 deploy/testvault/ "$HOST_DIR/testvault/"
|
||||
if [ ! -f "$MINDNET_ENV_FILE" ]; then
|
||||
sed "s#^MINDNET_VAULT_HOST_PATH=.*#MINDNET_VAULT_HOST_PATH=$HOST_DIR/testvault#" \
|
||||
deploy/env/dev.env.example > "$MINDNET_ENV_FILE"
|
||||
chmod 600 "$MINDNET_ENV_FILE"
|
||||
echo "dev.env aus Vorlage angelegt: $MINDNET_ENV_FILE"
|
||||
fi
|
||||
docker version --format 'Docker {{.Server.Version}}'
|
||||
docker compose version
|
||||
|
||||
- name: Test, Build, Preflight, Start, Smoke
|
||||
run: bash deploy/deploy.sh dev
|
||||
Reference in new issue
Block a user