Y24-481 - Study setup page changes #2821
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check docker image building process | |
on: | |
pull_request: | |
env: | |
IMAGE_NAME: ${{ github.repository }}/${{ github.event.repository.name }} | |
jobs: | |
build: | |
name: Check docker image building process | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build image | |
run: >- | |
docker compose build | |
- name: Start stack and wait for all healthy | |
run: | | |
RESET_DATABASE=true docker compose -f docker-compose.yml up & | |
while docker compose ps -q | xargs docker inspect --format '{{ .State.Health.Status }}' | grep -v '^healthy$' ; do | |
sleep 30 | |
echo "Waiting for healthy containers" | |
done | |
timeout-minutes: 5 | |
- name: Stop stack | |
run: >- | |
docker compose down |