call database Dockerfile correctly

This commit is contained in:
einhornimmond 2025-04-28 20:22:38 +02:00
parent 008e225329
commit 9753898201
4 changed files with 8 additions and 5 deletions

View File

@ -30,8 +30,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Database | Build 'test_up' image
run: docker build --target test_up -t "gradido/database:test_up" database/
- name: Database | Build 'up' image
run: docker build --target up -t "gradido/database:up" -f database/Dockerfile .
database_migration_test:
if: needs.files-changed.outputs.database == 'true' || needs.files-changed.outputs.docker-compose == 'true' || needs.files-changed.outputs.mariadb == 'true'

View File

@ -14,7 +14,8 @@ services:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: gradido/database:local-reset
build:
context: ./database
context: .
dockerfile: ./database/Dockerfile
target: reset
depends_on:
- mariadb

View File

@ -70,7 +70,8 @@ services:
database:
image: gradido/database:up
build:
context: ./database
context: .
dockerfile: ./database/Dockerfile
target: up
environment:
- NODE_ENV=test

View File

@ -220,7 +220,8 @@ services:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: gradido/database:local-up
build:
context: ./database
context: .
dockerfile: ./database/Dockerfile
target: up
depends_on:
- mariadb