35 lines
900 B
Markdown
35 lines
900 B
Markdown
# Hello World Woodpecker CI/CD Test
|
|
|
|
Dieses Projekt testet eine einfache Woodpecker CI/CD-Pipeline mit Podman-Integration.
|
|
|
|
## Struktur
|
|
|
|
- `hello.sh` - Einfaches Hello World Script
|
|
- `.woodpecker.yml` - Woodpecker Pipeline-Konfiguration
|
|
- `README.md` - Diese Dokumentation
|
|
|
|
## Pipeline Features
|
|
|
|
- Verwendet Alpine Linux Container
|
|
- Zwei Test-Steps:
|
|
1. `hello-world` - Führt das Hello World Script aus
|
|
2. `test-environment` - Zeigt Container-Environment-Informationen
|
|
|
|
## Funktionsweise
|
|
|
|
Die Pipeline wird automatisch bei Push auf `main` oder `master` Branch ausgelöst und:
|
|
1. Erstellt einen neuen Podman Container (Alpine Linux)
|
|
2. Führt das Hello World Script aus
|
|
3. Zeigt System- und Environment-Informationen
|
|
4. Bestätigt die erfolgreiche Ausführung
|
|
|
|
## Testing
|
|
|
|
```bash
|
|
# Lokaler Test des Scripts
|
|
./hello.sh
|
|
|
|
# Pipeline wird automatisch bei Git Push ausgelöst
|
|
git push origin main
|
|
```
|