Update Docker Registry URLs to HTTPS endpoint (registry.michaelschiemer.de)
- 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
This commit is contained in:
@@ -1,103 +1,48 @@
|
||||
# Nächste Schritte - Deployment Projekt
|
||||
# Git Deployment - Nächste Schritte
|
||||
|
||||
**Stand:** 2025-10-31
|
||||
**Status:** ✅ CI/CD Pipeline vollständig konfiguriert
|
||||
## ✅ 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
|
||||
|
||||
## 🎯 Nächster kritischer Schritt
|
||||
## 🔧 Lösung:
|
||||
|
||||
### Pipeline End-to-End testen
|
||||
|
||||
**Warum kritisch:**
|
||||
- Alles ist konfiguriert, aber noch nicht getestet
|
||||
- Erster kompletter Durchlauf zeigt eventuelle Probleme
|
||||
- Bestätigt, dass alles funktioniert
|
||||
|
||||
**Option 1: Test-Commit pushen (Empfohlen)**
|
||||
### Option 1: Image lokal pushen (Schnell)
|
||||
|
||||
```bash
|
||||
# Kleine, ungefährliche Änderung
|
||||
echo "# Deployment Test $(date)" >> README.md
|
||||
git add README.md
|
||||
git commit -m "test: CI/CD pipeline end-to-end test"
|
||||
git push origin main
|
||||
|
||||
# Pipeline beobachten:
|
||||
# → https://git.michaelschiemer.de/michael/michaelschiemer/actions
|
||||
# Im Projekt-Root
|
||||
docker push registry.michaelschiemer.de/framework:latest
|
||||
```
|
||||
|
||||
**Option 2: Workflow manuell triggern**
|
||||
|
||||
1. Gehe zu: `https://git.michaelschiemer.de/michael/michaelschiemer/actions`
|
||||
2. Wähle: "Production Deployment Pipeline"
|
||||
3. Klicke: "Run workflow"
|
||||
4. Branch: `main`
|
||||
5. `skip_tests`: `false` (Tests sollen laufen)
|
||||
6. Klicke: "Run workflow"
|
||||
|
||||
**Was zu prüfen:**
|
||||
- ✅ Tests erfolgreich
|
||||
- ✅ Build erfolgreich
|
||||
- ✅ Deployment erfolgreich
|
||||
- ✅ Application läuft auf Production
|
||||
- ✅ Health-Check erfolgreich
|
||||
|
||||
**Zeit:** ~8-15 Minuten
|
||||
|
||||
---
|
||||
|
||||
## 📋 Weitere Schritte (Optional)
|
||||
|
||||
### 2. Backup-Playbook erstellen
|
||||
|
||||
**Status:** Optional
|
||||
|
||||
**Was zu tun:**
|
||||
Dann Container neu starten:
|
||||
```bash
|
||||
cd deployment/ansible/playbooks
|
||||
# Erstelle backup.yml
|
||||
# → Backup Application Stack Volumes
|
||||
# → Integration PostgreSQL Backup
|
||||
# → Gitea Data Backup
|
||||
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"
|
||||
```
|
||||
|
||||
**Priorität:** Niedrig (Rollback funktioniert bereits)
|
||||
### Option 2: Via CI/CD (Empfohlen für Production)
|
||||
|
||||
### 3. Dokumentation finalisieren
|
||||
|
||||
**Status:** Optional
|
||||
|
||||
**Was zu tun:**
|
||||
- `DEPLOYMENT-STATUS.md` mit finalem Status aktualisieren
|
||||
- Eventuelle Verbesserungen dokumentieren
|
||||
|
||||
**Priorität:** Niedrig (Haupt-Dokumentation ist fertig)
|
||||
1. **Commit und Push** deiner Änderungen
|
||||
2. **CI/CD Pipeline** baut automatisch das Image
|
||||
3. **Dann** `sync-code.yml` ausführen
|
||||
|
||||
---
|
||||
|
||||
## ✅ Was ist bereits fertig?
|
||||
## 📊 Zusammenfassung
|
||||
|
||||
- ✅ Infrastructure Stacks (100%)
|
||||
- ✅ Application Stack Integration (100%)
|
||||
- ✅ CI/CD Pipeline Konfiguration (100%)
|
||||
- ✅ Dokumentation (95%)
|
||||
- ✅ Gitea Runner (läuft)
|
||||
- ✅ Secrets (konfiguriert)
|
||||
**Status:** Setup abgeschlossen, Image muss aktualisiert werden
|
||||
|
||||
**Gesamt-Completion:** ~95%
|
||||
**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
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Ready to Deploy!
|
||||
|
||||
**Alles ist bereit für das erste Deployment!**
|
||||
|
||||
Die Pipeline ist vollständig konfiguriert:
|
||||
- ✅ Workflows vorhanden
|
||||
- ✅ Secrets konfiguriert
|
||||
- ✅ Runner läuft
|
||||
- ✅ Ansible Playbooks vorhanden
|
||||
- ✅ Dokumentation vorhanden
|
||||
|
||||
**Nächster Schritt:** Einfach einen Test-Commit pushen! 🎉
|
||||
**Nur noch:** Image pushen und Container neu starten!
|
||||
|
||||
Reference in New Issue
Block a user