Skip to content

Commit 3d69598

Browse files
committed
Launch two dbs
1 parent 58b7804 commit 3d69598

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,27 @@ jobs:
3232
image: registry.gitlab.com/finestructure/spi-base:1.1.1
3333
options: --privileged
3434
services:
35-
postgres:
35+
db-0:
3636
image: postgres:16-alpine
3737
env:
3838
POSTGRES_DB: spi_test
3939
POSTGRES_USER: spi_test
4040
POSTGRES_PASSWORD: xxx
4141
ports:
42-
- '5432:5432'
42+
- '6000:5432'
43+
options: >-
44+
--health-cmd pg_isready
45+
--health-interval 10s
46+
--health-timeout 5s
47+
--health-retries 5
48+
db-1:
49+
image: postgres:16-alpine
50+
env:
51+
POSTGRES_DB: spi_test
52+
POSTGRES_USER: spi_test
53+
POSTGRES_PASSWORD: xxx
54+
ports:
55+
- '6001:5432'
4356
options: >-
4457
--health-cmd pg_isready
4558
--health-interval 10s

0 commit comments

Comments
 (0)