From c3e079cb6fa2c8f0cacec06ef4c2790d81b7e922 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 12 Jan 2023 18:52:42 +0100 Subject: [PATCH] Fix healthcheck in GHA --- .github/workflows/ansible-test-plugins.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansible-test-plugins.yml b/.github/workflows/ansible-test-plugins.yml index 4ee732d..d350057 100644 --- a/.github/workflows/ansible-test-plugins.yml +++ b/.github/workflows/ansible-test-plugins.yml @@ -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