mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
call database Dockerfile correctly
This commit is contained in:
parent
008e225329
commit
9753898201
4
.github/workflows/test_database.yml
vendored
4
.github/workflows/test_database.yml
vendored
@ -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'
|
||||
|
||||
@ -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
|
||||
|
||||
@ -70,7 +70,8 @@ services:
|
||||
database:
|
||||
image: gradido/database:up
|
||||
build:
|
||||
context: ./database
|
||||
context: .
|
||||
dockerfile: ./database/Dockerfile
|
||||
target: up
|
||||
environment:
|
||||
- NODE_ENV=test
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user