From ba79f4e392ab56071efb02d3cff9b9f871acf192 Mon Sep 17 00:00:00 2001 From: root691 <23039838+root691@users.noreply.github.com> Date: Mon, 27 Nov 2023 20:41:34 +0300 Subject: [PATCH] Update check-migrations.yml --- .github/workflows/check-migrations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-migrations.yml b/.github/workflows/check-migrations.yml index b8f4282..25a3081 100644 --- a/.github/workflows/check-migrations.yml +++ b/.github/workflows/check-migrations.yml @@ -41,7 +41,7 @@ jobs: run: docker run --rm --name postgresql -p 5432:5432 -e POSTGRES_DB=${{env.POSTGRESQL_DB}} -e POSTGRES_HOST_AUTH_METHOD=true --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 -d ${{env.POSTGRESQL_IMAGE}} - name: Wait for PostgreSQL run and headlthy - run: until docker inspect --format "{{json .State.Health.Status }}" postgresql | grep -m 1 "healthy"; do sleep 5; done + run: until docker inspect --format "{{json .State.Health.Status }}" postgresql|grep -m 1 "healthy"; do sleep 5 ; done - name: Run migrations run: docker run --rm -v "$(pwd)/${{env.MIGRATIONS_FOLDER}}":/app --network "host" ${{env.LIQUIBASE_IMAGE}} update --changelog-file=/app/${{env.LIQUIBASE_CHANGELOG_FILE}} --url=jdbc:postgresql://${{env.DOCKER_LOCALHOST}}:5432/${{env.POSTGRESQL_DB}}