Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippzagar committed Nov 12, 2024
1 parent 8578079 commit d1a6efa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -164,4 +166,5 @@ jobs:
- name: Stop and Remove Containers
if: always()
run: |
cd FogNode
docker compose down --remove-orphans

0 comments on commit d1a6efa

Please sign in to comment.