CI: Gitea-Action baut und deployt bei Push auf main (Runner-Whitelist, dist-Laufzeitmount)
Build & Deploy / deploy (push) Successful in 23s

This commit is contained in:
Kimi Work
2026-10-10 16:38:08 +02:00
parent 6ac0282851
commit ad6230c335
3 changed files with 50 additions and 2 deletions
+7 -1
View File
@@ -28,10 +28,16 @@ npm run build # Produktions-Build → app/dist/
## Deployment (VPS 82.165.218.97, /opt/1bis8)
**Automatisch:** Bei jedem Push auf `main` baut die Gitea-Action
(`.gitea/workflows/deploy.yml`) die App und kopiert `dist/` auf den Server –
der Web-Container nutzt das Verzeichnis als Laufzeit-Mount und nimmt die
Änderungen sofort an. Anschließend läuft ein Health-Check gegen beide Domains.
**Manuell:**
```bash
cd app && npm run build
scp -P 38592 -r dist root@82.165.218.97:/opt/1bis8/web/
ssh -p 38592 root@82.165.218.97 "cd /opt/1bis8 && docker compose up -d --build"
```
- TLS, Subdomains und Routing: Nginx Proxy Manager (`npm_default`-Netz)