From d8bbc50117f4c385f40754a00459329cb9f600ef Mon Sep 17 00:00:00 2001 From: Automation Admin Date: Fri, 15 Aug 2025 00:09:03 +0000 Subject: [PATCH] fix: YAML Syntax Fehler in Woodpecker Pipeline behoben MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .woodpecker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 38859cc..138112d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -44,7 +44,7 @@ steps: - curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh - chmod +x install.sh - 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_test: @@ -61,7 +61,7 @@ steps: - cd /tmp/gameadm-test - echo "✅ Module Download erfolgreich" - 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" # 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/install.sh -o install.sh - 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..." - grep -q "set -euo pipefail" gameadm && echo "✅ Fehlerbehandlung OK" - grep -q "set -euo pipefail" install.sh && echo "✅ Installer Fehlerbehandlung OK" @@ -90,7 +90,7 @@ steps: - echo "🔧 Teste gameadm Integration" - ./gameadm --help | grep -q "gameadm - Modularer Game Server Administrator" && echo "✅ Help 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" # Final Success Report