- Replace git.michaelschiemer.de:5000 (HTTP) with registry.michaelschiemer.de (HTTPS) - Update all Ansible playbooks and configuration files - Update CI/CD workflows to use HTTPS registry endpoint - Update Docker Compose files with new registry URL - Update documentation and scripts Benefits: - Secure HTTPS connection (no insecure registry config needed) - Consistent use of HTTPS endpoint via Traefik - Better security practices for production deployment
1.2 KiB
1.2 KiB
Git Deployment - Nächste Schritte
✅ Was funktioniert:
- Git-Variablen in
.envgesetzt ✅ - 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)
# Im Projekt-Root
docker push registry.michaelschiemer.de/framework:latest
Dann Container neu starten:
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)
- Commit und Push deiner Änderungen
- CI/CD Pipeline baut automatisch das Image
- Dann
sync-code.ymlausfü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!