fix: YAML Syntax Fehler in Woodpecker Pipeline behoben
- Entfernt problematische Anführungszeichen in bash -c Befehlen - Vereinfacht komplexe grep und test Ausdrücke - Korrigiert YAML Escaping für bessere Kompatibilität - Emoji reduziert für stabilere Pipeline-Ausführung
This commit is contained in:
parent
678c3f77a1
commit
d8bbc50117
|
|
@ -44,7 +44,7 @@ steps:
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
||||||
- chmod +x install.sh
|
- chmod +x install.sh
|
||||||
- echo "🔍 Teste OS Detection im Installer"
|
- echo "🔍 Teste OS Detection im Installer"
|
||||||
- bash -c "source install.sh && detect_os && echo 'OS Detection: OK'"
|
- bash -c "source install.sh && detect_os && echo 'OS Detection OK'"
|
||||||
|
|
||||||
# Module Tests
|
# Module Tests
|
||||||
module_test:
|
module_test:
|
||||||
|
|
@ -61,7 +61,7 @@ steps:
|
||||||
- cd /tmp/gameadm-test
|
- cd /tmp/gameadm-test
|
||||||
- echo "✅ Module Download erfolgreich"
|
- echo "✅ Module Download erfolgreich"
|
||||||
- echo "🔍 Teste Module Syntax"
|
- echo "🔍 Teste Module Syntax"
|
||||||
- for module in modules/*.sh; do [[ -f "$module" ]] && bash -n "$module" && echo "✅ Syntax OK: $module"; done
|
- for module in modules/*.sh; do test -f "$module" && bash -n "$module" && echo "Syntax OK for $module"; done
|
||||||
- echo "✅ Alle Module Tests erfolgreich"
|
- echo "✅ Alle Module Tests erfolgreich"
|
||||||
|
|
||||||
# Security Check
|
# Security Check
|
||||||
|
|
@ -73,7 +73,7 @@ steps:
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
||||||
- echo "🔍 Prüfe auf gefährliche Befehle..."
|
- echo "🔍 Prüfe auf gefährliche Befehle..."
|
||||||
- "! grep -E '(rm -rf /|mkfs|dd if=|format)' gameadm install.sh || (echo '❌ Gefährliche Befehle gefunden' && exit 1)"
|
- "! grep -E '(rm -rf /|mkfs|dd if=|format)' gameadm install.sh || (echo 'Gefährliche Befehle gefunden' && exit 1)"
|
||||||
- echo "🔍 Prüfe set -euo pipefail..."
|
- echo "🔍 Prüfe set -euo pipefail..."
|
||||||
- grep -q "set -euo pipefail" gameadm && echo "✅ Fehlerbehandlung OK"
|
- grep -q "set -euo pipefail" gameadm && echo "✅ Fehlerbehandlung OK"
|
||||||
- grep -q "set -euo pipefail" install.sh && echo "✅ Installer Fehlerbehandlung OK"
|
- grep -q "set -euo pipefail" install.sh && echo "✅ Installer Fehlerbehandlung OK"
|
||||||
|
|
@ -90,7 +90,7 @@ steps:
|
||||||
- echo "🔧 Teste gameadm Integration"
|
- echo "🔧 Teste gameadm Integration"
|
||||||
- ./gameadm --help | grep -q "gameadm - Modularer Game Server Administrator" && echo "✅ Help funktioniert"
|
- ./gameadm --help | grep -q "gameadm - Modularer Game Server Administrator" && echo "✅ Help funktioniert"
|
||||||
- ./gameadm --version | grep -q "gameadm v" && echo "✅ Version funktioniert"
|
- ./gameadm --version | grep -q "gameadm v" && echo "✅ Version funktioniert"
|
||||||
- ./gameadm list || echo "ℹ️ List command (Module fehlen erwartet)"
|
- ./gameadm list || echo "List command expected to fail (Module fehlen erwartet)"
|
||||||
- echo "✅ Integration Test erfolgreich"
|
- echo "✅ Integration Test erfolgreich"
|
||||||
|
|
||||||
# Final Success Report
|
# Final Success Report
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue