Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit e64234b

Browse files
committed
ci: Add test for Docker healtcheck
1 parent 5295d95 commit e64234b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main-docker.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ jobs:
5151
cache-from: type=gha
5252
cache-to: type=gha,mode=max
5353

54-
- name: Run the container
55-
run: |
56-
docker run --rm ${{ env.TEST_TAG }}
54+
- name: Run the container in the background
55+
run: docker run -d --rm ${{ env.TEST_TAG }}
56+
57+
- name: Wait for the healthchecks to pass
58+
run: timeout 60s sh -c 'until docker ps | grep ${{ env.TEST_TAG }} | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
5759

5860
build_docker:
5961
name: Build Docker images

0 commit comments

Comments
 (0)