From b7faa4a9c273ece943e406ebcca663065f1c41db Mon Sep 17 00:00:00 2001 From: Slach Date: Thu, 29 Aug 2024 22:38:35 +0500 Subject: [PATCH] add more readable logs in github actions when docker-compose unhealthy sometime --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bd7c82c8..f610acc9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -328,6 +328,9 @@ jobs: if wait "$pid"; then echo "$pid docker compose up successful" else + echo "=== docker ${project_id} state ===" + docker compose -f ${CUR_DIR}/${COMPOSE_FILE} --project-name ${project_id} --progress plain ps -a + echo "=== docker ${project_id} logs ===" docker compose -f ${CUR_DIR}/${COMPOSE_FILE} --project-name ${project_id} --progress plain logs echo "$pid the docker compose up failed." exit 1 # Exit with an error code if any command fails