From 71b9ddf7205076f9af802bab4add29a896355ecd Mon Sep 17 00:00:00 2001 From: Dokkae6949 Date: Sat, 13 Dec 2025 22:18:23 +0100 Subject: [PATCH] fix: gh-action db --- .github/workflows/docker-image.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 764cb41..fa42f09 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,13 +15,13 @@ jobs: services: postgres: - image: postgres:16 + image: postgres:17 env: POSTGRES_DB: homepage POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: - - 5432:5432 + - 5445:5432 options: >- --health-cmd="pg_isready -U postgres" --health-interval=5s @@ -65,9 +65,8 @@ jobs: with: context: . push: true - network: host build-args: | - DB_URL=jdbc:postgresql://localhost:5432/homepage + DB_URL=jdbc:postgresql://postgres:5445/homepage DB_USERNAME=postgres DB_PASSWORD=postgres tags: ${{ steps.meta.outputs.tags }}