Skip to content

Commit

Permalink
fix: sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Oct 16, 2023
1 parent c08ce16 commit 3253d5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
docker build -t ai-ml-web:latest -f ./Dockerfile-web .
docker swarm init
docker stack deploy ai-ml -c docker-compose.yml --prune
sleep 15
until [ $(docker inspect -f "{{json .State.Status }}" $(docker ps -a --filter ancestor=ai-ml-web --format="{{.ID}}" | head -n 1)) == '"running"' ]; do echo "Waiting for container to start..." && sleep 1; done
docker container exec -i $(docker ps -f name=ai-ml_web --format "{{.ID}}") pytest web
Expand Down

0 comments on commit 3253d5c

Please sign in to comment.