From 5421a263ef249c95ed0e461e64b09a7dbc95afca Mon Sep 17 00:00:00 2001 From: till_schuetze Date: Thu, 14 Nov 2024 09:17:49 +0100 Subject: [PATCH] Set pghost to localhost in pipeline --- .github/workflows/code-quality.yml | 1 + docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 0825a6ca3..d7ff5d52f 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -12,6 +12,7 @@ env: RUST_VERSION: "1.73" SQLX_OFFLINE: true SQLX_VERSION: 0.7.3 + PGHOST: localhost # Overrides the default value in .env jobs: # add_review_links: diff --git a/docker-compose.yaml b/docker-compose.yaml index cdf40843c..1ac01c435 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -74,7 +74,7 @@ services: volumes: - db:/var/lib/postgresql/data healthcheck: - test: ["CMD", "pg_isready", "-U", "${PGUSER}", "${PGDATABASE}"] + test: ["CMD-SHELL", "pg_isready -U ${PGUSER} -d ${PGDATABASE}"] interval: 10s timeout: 5s retries: 5