Fix healthcheck in GHA

This commit is contained in:
Laurent Indermuehle 2023-01-12 18:52:42 +01:00
parent 4e0c048965
commit c3e079cb6f
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -143,7 +143,7 @@ jobs:
- name: Wait for the primary to be healthy
run: |
while ! /usr/bin/docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" ${{ job.services.db_primary.id }} && [[ "$SECONDS" -lt 120 ]]; do sleep 1; done
while ! /usr/bin/docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" ${{ job.services.db_primary.id }} | grep healthy && [[ "$SECONDS" -lt 120 ]]; do sleep 1; done
- name: >-
Perform integration testing against