Skip to content

Commit ed1b7f5

Browse files
committed
fix ci cd again and again and again
1 parent 672de3b commit ed1b7f5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DATABASE_URL=postgres://postgres@localhost:5432/blog_dev
1+
DATABASE_URL=postgres://postgres@127.0.0.1:5432/blog_dev

.github/workflows/ci-cd.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
services:
3636
postgres:
3737
image: postgres:15
38+
ports:
39+
- 5432:5432
3840
env:
41+
POSTGRES_DB: devdb
3942
POSTGRES_USER: devuser
4043
POSTGRES_PASSWORD: devpassword
41-
POSTGRES_DB: devdb
42-
ports:
43-
- 5432:5432
4444
options: >-
4545
--health-cmd pg_isready
4646
--health-interval 10s
4747
--health-timeout 5s
4848
--health-retries 5
4949
env:
50-
DATABASE_URL: postgres://devuser:devpassword@localhost:5432/devdb
50+
DATABASE_URL: postgres://devuser:devpassword@127.0.0.1:5432/devdb
5151
DB_HOST: localhost
5252
DB_PORT: 5432
5353
DB_USER: devuser

0 commit comments

Comments
 (0)