migrate database to create database, use test db just in case

This commit is contained in:
Ulf Gebhardt 2021-10-21 23:31:04 +02:00
parent 5268d6b7b4
commit 21dc23bfb1
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 13 additions and 5 deletions

View File

@ -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 ##########################################################
########################################################################## ##########################################################################

View File

@ -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