Browse Source

ci: show docker logs if docker-test fails (#14219)

Ilya Mashchenko 2 years ago
parent
commit
6bf91be85a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .github/scripts/docker-test.sh

+ 4 - 0
.github/scripts/docker-test.sh

@@ -26,6 +26,10 @@ wait_for() {
     sleep 1
     if [ "$i" -gt "$timeout" ]; then
       printf "Timed out!\n"
+      docker ps -a
+      echo "::group::Netdata container logs"
+      docker logs netdata 2>&1
+      echo "::endgroup::"
       return 1
     fi
     i="$((i + 1))"