Skip to content

Commit 6de1369

Browse files
committed
GHA | added cleanup back | added debug logs for db
1 parent e9c6c4a commit 6de1369

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,18 @@ jobs:
3232
runs-on: ubuntu-latest
3333
services:
3434
db:
35-
image: postgres:14.7
36-
env:
37-
POSTGRES_USER: postgres
38-
POSTGRES_PASSWORD: Postgres123
39-
POSTGRES_DB: postgres
40-
options: >-
41-
--health-cmd "pg_isready -U postgres"
42-
--health-interval 10s
43-
--health-timeout 5s
44-
--health-retries 5
35+
image: postgres:14.7
36+
ports:
37+
- 5432:5432
38+
env:
39+
POSTGRES_USER: postgres
40+
POSTGRES_PASSWORD: Postgres123
41+
POSTGRES_DB: postgres
42+
options: >-
43+
--health-cmd "pg_isready -U postgres"
44+
--health-interval 10s
45+
--health-timeout 5s
46+
--health-retries 5
4547
es:
4648
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.2
4749
options: >-
@@ -76,7 +78,12 @@ jobs:
7678
- name: debug containers
7779
run: |
7880
docker ps
81+
echo "checking postgres on 0.0.0.0"
7982
pg_isready -h 0.0.0.0 -p 5432 -U postgres
83+
echo "checking postgres on localhost"
84+
pg_isready -h localhost -p 5432 -U postgres
85+
echo "checking postgres on db"
86+
pg_isready -h db -p 5432 -U postgres
8087
- name: Wait for Postgres
8188
run: |
8289
echo "Waiting for Postgres..."

0 commit comments

Comments
 (0)