Skip to content

Commit

Permalink
add more readable logs in github actions when docker-compose unhealth…
Browse files Browse the repository at this point in the history
…y sometime
  • Loading branch information
Slach committed Aug 29, 2024
1 parent 901c0a2 commit b7faa4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7faa4a

Please sign in to comment.