chore(infra): Gitea-Host auf git.hg-int.dev umstellen

Gitea läuft seit 2026-11-11 auf hivegrid-control (git.hg-int.dev);
git.tool-ctrl.de wird abgeschaltet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
raffaelandClaude Opus 5.5 committed 2026-11-11 18:53:32 +01:00
1 parent c4701e5b37
commit d09f79b673
56 files changed
+138 -138

No files matched your search

@@ -23,7 +23,7 @@ Domain-Controller sind grün. Produktion wurde durch diesen UI-/Branding-Release
- Feature-Merge: PR `#125`; Deploy-Hotfixes: PR `#130` und `#132`.
- Finaler Lauf:
[`#10300`](https://git.tool-ctrl.de/toolctrl-labs/HiveGrid-Cloud/actions/runs/10300), exakte Revision
[`#10300`](https://git.hg-int.dev/toolctrl-labs/HiveGrid-Cloud/actions/runs/10300), exakte Revision
`f54b04162b2823b1d2f6db0318baf1a7431c5b66`, vollständig grün für Staging und Produktion.
- Forward-only Migration:
`prisma/migrations/20260716123000_va_p26_customer_portal/migration.sql`, ausgeführt im
@@ -436,7 +436,7 @@ Staging-RLS-Proof.
### Ausgeführter Merge-/RLS-Proof vom 2026-07-16
Die reviewte Migration wurde mit PR `#125` in `main` übernommen und im Deploy-Lauf
[`#10300`](https://git.tool-ctrl.de/toolctrl-labs/HiveGrid-Cloud/actions/runs/10300) als einmaliger
[`#10300`](https://git.hg-int.dev/toolctrl-labs/HiveGrid-Cloud/actions/runs/10300) als einmaliger
Migrationsschritt ausgeführt. Der Lauf prüfte die exakte Revision
`f54b04162b2823b1d2f6db0318baf1a7431c5b66`, Migration-Chain-Parität, Tenant-Policy-Vertrag,
RLS-Release-Readiness und Live-RLS-Isolation. App, Worker und Portal liefen mit getrennten Rollen
@@ -119,9 +119,9 @@ finaler Subframe-/Design-Polish offen; der technische Funktionsumfang von `VA-P2
## 8. Release-Nachweis
- UI-/Branding-PR: [`#212`](https://git.tool-ctrl.de/toolctrl-labs/HiveGrid-Cloud/pulls/212)
- UI-/Branding-PR: [`#212`](https://git.hg-int.dev/toolctrl-labs/HiveGrid-Cloud/pulls/212)
- Main-Revision: `090e2558a6965e1c5804eb24d3eab5da8c8611a8`
- Staging-Deploy: [`#11018`](https://git.tool-ctrl.de/toolctrl-labs/HiveGrid-Cloud/actions/runs/11018)
- Staging-Deploy: [`#11018`](https://git.hg-int.dev/toolctrl-labs/HiveGrid-Cloud/actions/runs/11018)
- CI: 13/13 PR-Jobs grün; Typecheck, Lint, Core-Tests, Visual-, A11y-, i18n-, Hot-Swap-, Bundle- und
Docker-Gates grün.
- Core und Portal verwenden denselben Web-Digest
@@ -30,7 +30,7 @@ For the lightweight alternative (GlitchTip, no Performance/Replay/OTLP), see
```bash
cd /data/coolify/services/sentry
git clone git@git.tool-ctrl.de:toolctrl-labs/HiveGrid-Cloud.git .
git clone git@git.hg-int.dev:toolctrl-labs/HiveGrid-Cloud.git .
cd infra/sentry
cp .env.example .env
# Edit .env — fill SENTRY_ADMIN_EMAIL, SENTRY_ADMIN_PASSWORD,
@@ -314,7 +314,7 @@ and passes source-maps through the workflow artifact instead.
### 2. Store secrets in Gitea Actions
In Gitea (`git.tool-ctrl.de/toolctrl-labs/HiveGrid-Cloud`) open
In Gitea (`git.hg-int.dev/toolctrl-labs/HiveGrid-Cloud`) open
**Repository Settings → Actions → Secrets** and create the same three
secrets (`SENTRY_AUTH_TOKEN`, `SENTRY_ORG`, `SENTRY_URL`) with
identical values. Gitea's repository secret scoping makes them available to the
@@ -16,7 +16,7 @@ ist Mesh-Peer und erreicht Gitea über `10.42.0.2`. Gitea-Server bleibt, wo er i
Runner-Last zieht um.
- Compose: `/opt/stacks/gitea-ci-runner/docker-compose.yml` (`network_mode: host`,
`--add-host git.tool-ctrl.de:10.42.0.2`, `CONFIG_FILE=/data/config.yaml`).
`--add-host git.hg-int.dev:195.201.133.26`, `CONFIG_FILE=/data/config.yaml`).
- Config: `/srv/data/gitea-ci-runner/config.yaml` (capacity, labels, cache.dir).
- Homeserver-Runner steht auf `restart=no` (aus, kein Auto-Restart, keine OOM-Schleife).
@@ -173,7 +173,7 @@ Alle in **fsn1**, im Private Network, mit Firewall + SSH-Key. cx-Linie (x86):
> insbesondere gelten heute der Entrypoint-basierte Migrationslauf und der
> kanonische `POST /api/v1/deploy?uuid=<resource-uuid>&force=true`-Trigger.
- Image-Schema: `git.tool-ctrl.de/toolctrl-labs/hivegrid/{web,api,worker}:<commit-sha>`, build_pack `dockerimage`, Port **8080**.
- Image-Schema: `git.hg-int.dev/toolctrl-labs/hivegrid/{web,api,worker}:<commit-sha>`, build_pack `dockerimage`, Port **8080**.
- **Promote = retag, kein Rebuild:** Prod deployt denselben SHA-Tag, der getestet/gestaged ist (aktuell `9ae3963d…` = live auf Staging → Image existiert in der Gitea-Registry).
- **7 Coolify-Apps** (nicht 3!): `web`, `api`, `worker-general`, `worker-mail`, `worker-import`, `worker-webhook`, `worker-plugin` — web/api aus `/web`+`/api`-Image, die 5 Worker aus `/worker`-Image mit unterschiedlichem `WORKER_QUEUE_GROUP`.
- Damalige Annahme: `scripts/coolify-deploy.mjs` patcht `docker_registry_image_tag` und ein Coolify-Pre-Deployment-Command führt `migrate deploy` aus. Der Hook-Teil dieser Annahme ist überholt: Heute setzt die Pipeline die Boot-Flags, leert beide Hook-Slots und triggert nach dem Image-Patch mit `POST /api/v1/deploy?uuid=<resource-uuid>&force=true`; Migration und Seed laufen im neuen Web-Container über `start.sh`.
@@ -183,7 +183,7 @@ Alle in **fsn1**, im Private Network, mit Firewall + SSH-Key. cx-Linie (x86):
## App-Deploy + Go-Live (Schritt 5–6) — LIVE 2026-06-19
- **Registry-Pull:** `docker login git.tool-ctrl.de` auf web/api/worker (User `gitea-admin`; Härtung: scoped Bot-PAT). Image `hivegrid/{web,api,worker}:9ae3963d…` (= Staging-Stand) gepullt.
- **Registry-Pull:** `docker login git.hg-int.dev` auf web/api/worker (User `gitea-admin`; Härtung: scoped Bot-PAT). Image `hivegrid/{web,api,worker}:9ae3963d…` (= Staging-Stand) gepullt.
- **7 Coolify-Apps** (Docker-Image): `hivegrid-web`, `-api`, `-worker-{general,mail,import,webhook,plugin}` (Worker je `WORKER_QUEUE_GROUP`). UUIDs in `~/.cli-tokens/coolify-prod`.
- **Prod-Env** aus Staging transformiert (Bug gefixt: bei doppelten build/runtime-Keys nicht-leeren Wert bevorzugen — sonst Mailjet u.a. leer → Worker-Crash). Frische, app-konsistente Secrets in `~/.cli-tokens/hivegrid-prod-app-secrets`. Demo-Seed AUS, `WEB_NOINDEX` raus (Prod indexierbar).
- **Postgres-Image korrigiert:** `postgres:16-alpine` → `pgvector/pgvector:pg16` (Migration `04_enable_pgvector` brauchte die Extension). Migration im laufenden web-Container ausgeführt → **alle Migrationen angewandt** (inkl. P2 `UserSession`+`TrustedDevice`).