Update postgres-service.yml
This commit is contained in:
5
.github/workflows/postgres-service.yml
vendored
5
.github/workflows/postgres-service.yml
vendored
@@ -50,7 +50,8 @@ jobs:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
# will assign a random free host port
|
||||
- 5432/tcp
|
||||
# needed because the postgres container does not provide a healthcheck
|
||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||
|
||||
@@ -64,4 +65,4 @@ jobs:
|
||||
# use postgres for the host here because we have specified a contaienr for the job.
|
||||
# If we were running the job on the VM this would be localhost
|
||||
POSTGRES_HOST: localhost
|
||||
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
|
||||
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} # get randomly assigned published port
|
||||
|
||||
Reference in New Issue
Block a user