chore: sync staging workspace
This commit is contained in:
48
deployment/docs/status/next-steps.md
Normal file
48
deployment/docs/status/next-steps.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# Git Deployment - Nächste Schritte
|
||||
|
||||
## ✅ Was funktioniert:
|
||||
- Git-Variablen in `.env` gesetzt ✅
|
||||
- Ansible Playbook funktioniert ✅
|
||||
- Container neu gestartet ✅
|
||||
|
||||
## ❌ Was noch fehlt:
|
||||
- **Image enthält noch alte Version** ohne Git-Funktionalität
|
||||
- Environment-Variablen werden nicht geladen
|
||||
|
||||
## 🔧 Lösung:
|
||||
|
||||
### Option 1: Image lokal pushen (Schnell)
|
||||
|
||||
```bash
|
||||
# Im Projekt-Root
|
||||
docker push registry.michaelschiemer.de/framework:latest
|
||||
```
|
||||
|
||||
Dann Container neu starten:
|
||||
```bash
|
||||
cd deployment/ansible
|
||||
ansible-playbook -i inventory/production.yml playbooks/sync-code.yml \
|
||||
-e "git_repo_url=https://git.michaelschiemer.de/michael/michaelschiemer.git" \
|
||||
-e "git_branch=main"
|
||||
```
|
||||
|
||||
### Option 2: Via CI/CD (Empfohlen für Production)
|
||||
|
||||
1. **Commit und Push** deiner Änderungen
|
||||
2. **CI/CD Pipeline** baut automatisch das Image
|
||||
3. **Dann** `sync-code.yml` ausführen
|
||||
|
||||
---
|
||||
|
||||
## 📊 Zusammenfassung
|
||||
|
||||
**Status:** Setup abgeschlossen, Image muss aktualisiert werden
|
||||
|
||||
**Alle Komponenten sind bereit:**
|
||||
- ✅ Entrypoint Script mit Git-Funktionalität
|
||||
- ✅ Dockerfile mit Git + Composer
|
||||
- ✅ Docker Compose mit Git Environment Variables
|
||||
- ✅ Ansible Playbook für Git-Sync
|
||||
- ✅ .env mit Git-Variablen
|
||||
|
||||
**Nur noch:** Image pushen und Container neu starten!
|
||||
Reference in New Issue
Block a user