Skip to content

Commit

Permalink
⚙️ config(ci): Check that server container is healthy in image test job.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 14, 2024
1 parent 19904bc commit 95d1461
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci:build:image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ jobs:
timeout 60 bash -c \
'curl -f http://${{ steps.server-container-ip-address.outputs.address }}:3000/api/healthcheck'
- name: Wait for container to be healthy
run: |
timeout 60 bash -c \
'until docker inspect --format "{{json .State.Health }}" server | jq -e ".Status == \"healthy\"" ; do sleep 1; done'
- name: Show docker containers
if: always()
run: |
Expand Down

0 comments on commit 95d1461

Please sign in to comment.