Skip to content

Commit

Permalink
ci: Add test for Docker healtcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Aug 7, 2024
1 parent 5295d95 commit e64234b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Run the container
run: |
docker run --rm ${{ env.TEST_TAG }}
- name: Run the container in the background
run: docker run -d --rm ${{ env.TEST_TAG }}

- name: Wait for the healthchecks to pass
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'

build_docker:
name: Build Docker images
Expand Down

0 comments on commit e64234b

Please sign in to comment.