Skip to content

Commit

Permalink
Docker test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomansion committed Oct 30, 2023
1 parent 2f2a7f8 commit 313596d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,13 @@ jobs:
run: docker run -d -p 3000:3000 debiai
- name: Wait for the Docker container to start
run: |
echo "Waiting for container status..."
for i in {1..10}; do
echo "Waiting for container status..."
sleep 3
docker ps
docker ps -q
docker inspect --format='{{.State.Status}}' $(docker ps -q)
status=$(docker inspect --format='{{.State.Status}}' $(docker ps -q) | tr -d '[:space:]')
container_id=$(docker ps -q -f "ancestor=debiai")
status=$(docker inspect --format='{{.State.Status}}' $container_id | tr -d '[:space:]')
echo "Docker status: '$status'";
if [ "$status" = "running" ]; then
echo "Container is running"
exit 0
Expand Down

0 comments on commit 313596d

Please sign in to comment.