Skip to content

Commit a8566de

Browse files
committed
fix(ci): add postgres service to deploy workflow
1 parent b0a929a commit a8566de

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ jobs:
1313
CI: true
1414
TERM: xterm
1515
FORCE_COLOR: 1
16+
PGUSER: postgres
17+
PGPASSWORD: postgres
18+
PGHOST: localhost
19+
PGPORT: 5432
20+
21+
services:
22+
postgres:
23+
image: postgres:13
24+
env:
25+
POSTGRES_USER: postgres
26+
POSTGRES_PASSWORD: postgres
27+
POSTGRES_DB: postgres
28+
ports:
29+
- "0.0.0.0:5432:5432"
30+
# needed because the postgres container does not provide a healthcheck
31+
options:
32+
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
33+
--health-retries 5 --name postgres
1634

1735
steps:
1836
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)