chore: Update deployment configuration and documentation
- Update Gitea configuration (remove DEFAULT_ACTIONS_URL) - Fix deployment documentation - Update Ansible playbooks - Clean up deprecated files - Add new deployment scripts and templates
This commit is contained in:
45
deployment/QUICK_TEST.md
Normal file
45
deployment/QUICK_TEST.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# Quick Git Deployment Test
|
||||
|
||||
## ✅ Verifikation ohne Container
|
||||
|
||||
Alle Dateien sind korrekt konfiguriert:
|
||||
|
||||
### 1. Entrypoint Script (`docker/entrypoint.sh`)
|
||||
- ✅ `GIT_REPOSITORY_URL` Check vorhanden (Zeile 30)
|
||||
- ✅ Git Clone/Pull Funktionalität implementiert
|
||||
- ✅ Composer Install integriert
|
||||
|
||||
### 2. Docker Compose (`deployment/stacks/application/docker-compose.yml`)
|
||||
- ✅ `GIT_REPOSITORY_URL` Environment Variable vorhanden (Zeile 17)
|
||||
- ✅ `GIT_BRANCH`, `GIT_TOKEN`, `GIT_USERNAME`, `GIT_PASSWORD` vorhanden
|
||||
|
||||
### 3. Ansible Template (`deployment/ansible/templates/application.env.j2`)
|
||||
- ✅ Git-Variablen im Template definiert
|
||||
|
||||
### 4. Dockerfile (`Dockerfile.production`)
|
||||
- ✅ Git installiert
|
||||
- ✅ Composer installiert
|
||||
- ✅ Entrypoint kopiert
|
||||
|
||||
---
|
||||
|
||||
## 🧪 Schneller Test (ohne Container-Start)
|
||||
|
||||
```bash
|
||||
# Prüfen ob GIT_REPOSITORY_URL überall vorhanden ist
|
||||
grep -c "GIT_REPOSITORY_URL" docker/entrypoint.sh
|
||||
grep -c "GIT_REPOSITORY_URL" deployment/stacks/application/docker-compose.yml
|
||||
grep -c "GIT_REPOSITORY_URL" deployment/ansible/templates/application.env.j2
|
||||
```
|
||||
|
||||
**Erwartetes Ergebnis:** Alle sollten > 0 zurückgeben
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Nächste Schritte zum Testen
|
||||
|
||||
1. **Image ist bereits gebaut** ✅
|
||||
2. **Git-Variablen in .env setzen** (auf Production Server)
|
||||
3. **Container neu starten** und Logs prüfen
|
||||
|
||||
Siehe `TEST_GIT_DEPLOYMENT.md` für detaillierte Anleitung.
|
||||
Reference in New Issue
Block a user