mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:14:03 +00:00
Use PGPASSWORD instead of hardcoding POSTGRES_PASSWORD in ci.yml
This commit is contained in:
parent
601d897a63
commit
315b2dd113
2 changed files with 1 additions and 1 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -47,7 +47,6 @@ jobs:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: 'postgres'
|
|
||||||
POSTGRES_DB: main
|
POSTGRES_DB: main
|
||||||
ports:
|
ports:
|
||||||
- 5432/tcp
|
- 5432/tcp
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ services:
|
||||||
POSTGRES_DB: main
|
POSTGRES_DB: main
|
||||||
POSTGRES_USER: '${POSTGRES_USER:-postgres}'
|
POSTGRES_USER: '${POSTGRES_USER:-postgres}'
|
||||||
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
||||||
|
PGPASSWORD: '${POSTGRES_PASSWORD}'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue