From d1a6efa5019dc529e5cc3c70d2735a0e3ebfa630 Mon Sep 17 00:00:00 2001 From: Philipp Zagar Date: Tue, 12 Nov 2024 12:02:58 +0100 Subject: [PATCH] Fixes --- .github/workflows/build-and-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index cd2ee0e..bb4c103 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -153,9 +153,11 @@ jobs: docker compose -f docker-compose.yml --profile linux up --build -d - name: Wait for Services to Start run: | + cd FogNode timeout 30 bash -c 'until docker compose ps --filter "status=running" | grep -q "Up"; do sleep 1; done' - name: Verify Container Status run: | + cd FogNode if [ "$(docker compose ps --filter "status=exited" -q | wc -l)" -gt 0 ]; then echo "One or more containers exited unexpectedly." docker compose logs @@ -164,4 +166,5 @@ jobs: - name: Stop and Remove Containers if: always() run: | + cd FogNode docker compose down --remove-orphans