Compose-Validierung: fehlende .env tolerieren

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jochen MehlichandClaude Sonnet 5.5 committed 2026-10-24 17:28:58 +02:00
1 parent 36e78cd400
commit 0f559683d3
1 file changed
+8 -1
+8 -1
View File
@@ -28,7 +28,14 @@ runs:
steps:
- name: Compose-Datei validieren
shell: bash
run: docker compose -f "$COMPOSE_FILE" config --quiet
# .env liegt nur auf dem Server (nicht im Repo): für die Syntaxprüfung temporär leer anlegen
run: |
dir=$(dirname "$COMPOSE_FILE")
if [ ! -e "$dir/.env" ]; then
touch "$dir/.env"
trap 'rm -f "$dir/.env"' EXIT
fi
docker compose -f "$COMPOSE_FILE" config --quiet
env:
COMPOSE_FILE: ${{ inputs.compose_file }}