Skip to content

Commit 29da808

Browse files
committed
fix: improve Postgres health check command in CI workflow
1 parent 5ac9409 commit 29da808

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ jobs:
5757
POSTGRES_USER: test
5858
POSTGRES_PASSWORD: test
5959
POSTGRES_DB: zcloudpass_test
60+
ports:
61+
- 5432:5432
6062
options: >-
61-
--health-cmd "pg_isready -U test"
63+
--health-cmd "pg_isready -h 127.0.0.1 -p 5432 -U test"
6264
--health-interval 10s
6365
--health-timeout 5s
6466
--health-retries 5

0 commit comments

Comments
 (0)