chore: Single Source of Truth = main (stable-Branch + Gruen-Gate abgeschafft)
Ampel / ampel (push) Successful in 27s

Commander-Entscheid 24.07.: nur noch EIN Branch. Der stable-Zwischenbranch
war vestigial — die VM deployt ohnehin aus main (git pull), das Gruen-Gate
hat den Live-Deploy nie real gegated.

- ci.yml: Beförderungs-Schritt (push -> stable) entfernt; die Ampel prueft
  nur noch (Ruff/pytest/Vite-Build), Rot heisst weiterhin: nicht deployen.
- deploy.sh: klont/resettet auf main statt stable.
- AGENTS §C, README (Entwicklung), DESIGN-2.0-Briefing: auf main-only
  umgeschrieben. Design-2.0-Briefing als ERLEDIGT markiert.
- SAVEPOINT v3.6.

Branches stable / design-2.0 / kernumbau-2026-07-23 werden nach diesem
Push geloescht (Inhalte vollstaendig in main).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-07-24 16:13:10 +02:00
parent bd00d4c728
commit b8162753a9
6 changed files with 52 additions and 28 deletions
+9 -8
View File
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
# NOTFALL-Deploy für Rippy (Normalweg = Grün-Gate: push → Ampel grün → CI
# befördert auf 'stable' → Arcane-GitSync deployt).
# Dieses Skript nur nutzen, wenn der Automat klemmt (Arcane down o. ä.).
# Deploy für Rippy — deployt den aktuellen 'main'-Stand auf die VM.
# Single Source of Truth ist seit 24.07.2026 'main' (kein stable-Branch mehr);
# die Ampel prüft nur noch, befördert aber nichts. Vor dem Deploy also selbst
# sicherstellen, dass die Ampel für den zu deployenden Commit GRÜN ist.
#
# Nutzt einen EIGENEN Klon (~/notfall-rippy, Branch stable) und fasst Arcanes
# Nutzt einen EIGENEN Klon (~/notfall-rippy) und fasst Arcanes
# Projektverzeichnis (~/projects/rippy) NIE an — 22.07. gelernt: ein git-Klon
# im Arcane-Verzeichnis kollidiert mit dessen Promote (read-only .git-Objekte).
# im Arcane-Verzeichnis kollidiert mit dessen Sync (read-only .git-Objekte).
# Die .env gehört Arcane und wird nur GELESEN (für compose-Interpolation).
set -euo pipefail
@@ -15,11 +16,11 @@ DIENST="${1:-}" # optional: nur einen Dienst neu bauen, z.B. ./deploy.sh api
ssh "$VM" 'bash -s' <<REMOTE
set -euo pipefail
if [ ! -d ~/notfall-rippy/.git ]; then
git clone --branch stable https://git.tobisniceshomelab.ddnsfree.com/Hitonabi/rippy.git ~/notfall-rippy
git clone --branch main https://git.tobisniceshomelab.ddnsfree.com/Hitonabi/rippy.git ~/notfall-rippy
fi
cd ~/notfall-rippy
git fetch origin stable
git reset --hard origin/stable
git fetch origin main
git reset --hard origin/main
cp ~/projects/rippy/.env .env 2>/dev/null || echo "WARNUNG: keine .env in Arcanes Projektverzeichnis"
docker compose -p rippy up -d --build $DIENST
docker compose -p rippy ps --format 'table {{.Name}}\t{{.Status}}'