mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
migrate database to create database, use test db just in case
This commit is contained in:
parent
5268d6b7b4
commit
21dc23bfb1
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -409,10 +409,18 @@ jobs:
|
|||||||
--health-timeout=3s
|
--health-timeout=3s
|
||||||
--health-retries=4
|
--health-retries=4
|
||||||
steps:
|
steps:
|
||||||
- name: Debug service
|
# - name: Debug service
|
||||||
run: echo "$(docker ps)"
|
# run: echo "$(docker ps)"
|
||||||
- name: Debug container choosing script
|
#- name: Debug container choosing script
|
||||||
run: echo "$(docker container ls | grep mariadb | awk '{ print $1 }')"
|
# run: echo "$(docker container ls | grep mariadb | awk '{ print $1 }')"
|
||||||
|
- name: get mariadb container id
|
||||||
|
run: echo "::set-output name=id::$(docker container ls | grep mariadb | awk '{ print $1 }')"
|
||||||
|
id: mariadb_container
|
||||||
|
- name: get automatic created network
|
||||||
|
run: echo "::set-output name=id::$(docker network ls | grep github_network | awk '{ print $1 }')"
|
||||||
|
id: network
|
||||||
|
- name: Start database migration
|
||||||
|
run: docker run --network ${{ steps.network.outputs.id }} --name=database --env NODE_ENV=production --env DB_HOST=mariadb --env DB_DATABASE=gradido_community_test -d gradido/database:production_up
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
@ -17,7 +17,7 @@ phpServer.host = nginx
|
|||||||
loginServer.path = http://localhost/account
|
loginServer.path = http://localhost/account
|
||||||
loginServer.default_locale = de
|
loginServer.default_locale = de
|
||||||
loginServer.db.host = mariadb
|
loginServer.db.host = mariadb
|
||||||
loginServer.db.name = gradido_community
|
loginServer.db.name = gradido_community_test
|
||||||
loginServer.db.user = root
|
loginServer.db.user = root
|
||||||
loginServer.db.password =
|
loginServer.db.password =
|
||||||
loginServer.db.port = 3306
|
loginServer.db.port = 3306
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user