2025-08-09 02:03:06 +02:00
|
|
|
# Feature Branch Development
|
|
|
|
|
|
|
|
|
|
## Workflow für Experimente
|
|
|
|
|
|
|
|
|
|
### 1. Feature Branch erstellen
|
|
|
|
|
```bash
|
|
|
|
|
git checkout -b feature/mein-experiment
|
|
|
|
|
git push -u origin feature/mein-experiment
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 2. Entwickeln und Testen
|
|
|
|
|
- Änderungen im Feature Branch machen
|
|
|
|
|
- Commits und Pushes wie gewohnt
|
|
|
|
|
- GitHub Actions baut automatisch das Feature Image
|
|
|
|
|
|
|
|
|
|
### 3. Feature Version testen
|
|
|
|
|
```bash
|
2025-08-09 02:22:50 +02:00
|
|
|
# Feature Version starten (ersetzt Stable Version)
|
2025-08-09 02:03:06 +02:00
|
|
|
docker-compose -f docker-compose.feature.yml up -d
|
|
|
|
|
|
2025-08-09 02:22:50 +02:00
|
|
|
# Beide Versionen verwenden Port 8199
|
|
|
|
|
# Nightly Version zeigt "Nightly" Badge im Header
|
2025-08-09 02:03:06 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 4. In Portainer
|
2025-08-09 02:22:50 +02:00
|
|
|
- **Stable Version:** `flex420/discordsoundbot-vib:latest` (Port 8199)
|
|
|
|
|
- **Nightly Version:** `flex420/discordsoundbot-vib:feature-nightly` (Port 8199)
|
2025-08-09 02:03:06 +02:00
|
|
|
|
|
|
|
|
### 5. Mergen wenn bereit
|
|
|
|
|
```bash
|
|
|
|
|
git checkout main
|
|
|
|
|
git merge feature/mein-experiment
|
|
|
|
|
git push origin main
|
|
|
|
|
# Feature Branch löschen
|
|
|
|
|
git branch -d feature/mein-experiment
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Docker Images
|
|
|
|
|
- `:latest` - Hauptversion (main branch)
|
2025-08-09 02:14:08 +02:00
|
|
|
- `:feature-nightly` - Feature Version
|
2025-08-09 02:03:06 +02:00
|
|
|
- `:main` - Explizit main branch
|
|
|
|
|
- `:sha-abc123` - Spezifischer Commit
|
|
|
|
|
|
|
|
|
|
## Portainer Setup
|
2025-08-09 02:22:50 +02:00
|
|
|
1. **Stable Container:** Port 8199, Image `:latest`
|
|
|
|
|
2. **Nightly Container:** Port 8199, Image `:feature-nightly`
|
|
|
|
|
3. **Testing:** Nightly Version zeigt "Nightly" Badge im Header
|
2025-08-09 02:03:06 +02:00
|
|
|
4. **Deployment:** Wenn gut, Feature in main mergen
|