Skip to content

Commit b7faa4a

Browse files
committed
add more readable logs in github actions when docker-compose unhealthy sometime
1 parent 901c0a2 commit b7faa4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ jobs:
328328
if wait "$pid"; then
329329
echo "$pid docker compose up successful"
330330
else
331+
echo "=== docker ${project_id} state ==="
332+
docker compose -f ${CUR_DIR}/${COMPOSE_FILE} --project-name ${project_id} --progress plain ps -a
333+
echo "=== docker ${project_id} logs ==="
331334
docker compose -f ${CUR_DIR}/${COMPOSE_FILE} --project-name ${project_id} --progress plain logs
332335
echo "$pid the docker compose up failed."
333336
exit 1 # Exit with an error code if any command fails

0 commit comments

Comments
 (0)