From 315b2dd1138445e7ead581ee569c3a9cfb653784 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 22 May 2023 13:43:20 +0200 Subject: [PATCH] Use PGPASSWORD instead of hardcoding POSTGRES_PASSWORD in ci.yml --- .github/workflows/ci.yml | 1 - docker-compose.yml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e144d777..5feffd8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,6 @@ jobs: postgres: image: postgres:latest env: - POSTGRES_PASSWORD: 'postgres' POSTGRES_DB: main ports: - 5432/tcp diff --git a/docker-compose.yml b/docker-compose.yml index 93165e66..75cf0388 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -59,6 +59,7 @@ services: POSTGRES_DB: main POSTGRES_USER: '${POSTGRES_USER:-postgres}' POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}' + PGPASSWORD: '${POSTGRES_PASSWORD}' healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"] interval: 10s