fix: gh-action db
This commit is contained in:
parent
baf2e0b8cc
commit
71b9ddf720
1 changed files with 3 additions and 4 deletions
7
.github/workflows/docker-image.yml
vendored
7
.github/workflows/docker-image.yml
vendored
|
|
@ -15,13 +15,13 @@ jobs:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16
|
image: postgres:17
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: homepage
|
POSTGRES_DB: homepage
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5445:5432
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd="pg_isready -U postgres"
|
--health-cmd="pg_isready -U postgres"
|
||||||
--health-interval=5s
|
--health-interval=5s
|
||||||
|
|
@ -65,9 +65,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
network: host
|
|
||||||
build-args: |
|
build-args: |
|
||||||
DB_URL=jdbc:postgresql://localhost:5432/homepage
|
DB_URL=jdbc:postgresql://postgres:5445/homepage
|
||||||
DB_USERNAME=postgres
|
DB_USERNAME=postgres
|
||||||
DB_PASSWORD=postgres
|
DB_PASSWORD=postgres
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue