Print docker logs of the failing check for easier debug in CI (#3139)

Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
Andrei Ciobanu
2025-08-13 17:47:26 +03:00
committed by GitHub
parent ee0029965f
commit e342597e17

View File

@@ -33,6 +33,7 @@ for SERVICE in $SERVICES; do
echo -e "::group::\033[0;32m✅ ${SERVICE}\033[0m"
else
echo -e "::group::\033[0;31m❌ ${SERVICE}\033[0m"
docker compose logs ${SERVICE}
FAILED=$((${FAILED}+1))
fi
cat $TEMPFILE | grep -a -E "^[a-zA-Z]+-${SERVICE}-1\s+\| " | sed -E "s/^[a-zA-Z]+-${SERVICE}-1\s+\| //"