1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:14:04 +00:00

Use PGPASSWORD instead of hardcoding POSTGRES_PASSWORD in ci.yml

This commit is contained in:
lukinovec 2023-05-22 13:43:20 +02:00
parent 601d897a63
commit 315b2dd113
2 changed files with 1 additions and 1 deletions

View file

@ -47,7 +47,6 @@ jobs:
postgres:
image: postgres:latest
env:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_DB: main
ports:
- 5432/tcp

View file

@ -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