Skip to content

Commit f1636bd

Browse files
committed
CI: fix PostgreSQL access 💚
1 parent a3cb73b commit f1636bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
# make this workflow callable from other workflows
1111
workflow_call:
1212

13+
env:
14+
PGHOST: localhost
15+
PGPORT: '5432'
16+
PGUSER: postgres
17+
PGPASSWORD: password
18+
PGDATABASE: postgres
19+
1320
jobs:
1421
test:
1522
runs-on: ubuntu-latest
@@ -58,7 +65,7 @@ jobs:
5865
run: |
5966
docker run -d \
6067
-e POSTGRES_USER=$PGUSER -e POSTGRES_PASSWORD=$PGPASSWORD -e POSTGRES_DB=$PGDATABASE \
61-
-p 5432:5432 postgis/postgis:${{ matrix.postgis-docker-tag }} \
68+
-p "$PGPORT:5432" postgis/postgis:${{ matrix.postgis-docker-tag }} \
6269
-c timezone=Europe/Berlin
6370
env:
6471
PGUSER: postgres

0 commit comments

Comments
 (0)