We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc50315 commit 89198d2Copy full SHA for 89198d2
.github/workflows/build-test.yaml
@@ -98,6 +98,23 @@ jobs:
98
if [ "$ELAPSED" -ge "$TIMEOUT" ]; then
99
echo "ERROR: Timed out waiting for healthy containers"
100
${DOCKER_CMD} ps
101
+
102
+ echo ""
103
104
+ echo "=== Failing container logs ==="
105
106
+ # Loop through failing containers and dump logs
107
+ echo "$UNHEALTHY" | while read -r line; do
108
+ NAME=$(echo "$line" | awk '{print $1}' | sed 's#^/##')
109
110
111
+ echo "----- Logs for $NAME -----"
112
113
+ # Try compose logs first (nicer formatting)
114
+ ${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} logs --no-color "$NAME" || \
115
+ ${DOCKER_CMD} logs "$NAME" || \
116
+ echo "Unable to retrieve logs for $NAME"
117
+ done
118
exit 1
119
fi
120
done
0 commit comments