From 3e1f0dfa1210ccebf96065d7399e7db8184a942c Mon Sep 17 00:00:00 2001 From: Einhornimmond Date: Wed, 22 Sep 2021 12:45:30 +0200 Subject: [PATCH] add database like login-server --- .github/workflows/test.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 046d63681..de1da0dc9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -413,7 +413,7 @@ jobs: needs: [build_test_community_server] services: mariadb: - image: mariadb/server:10.5 + image: gradido/mariadb:test env: MARIADB_ALLOW_EMPTY_PASSWORD: 1 MARIADB_USER: root @@ -424,16 +424,9 @@ jobs: --health-retries=3 database: image: gradido/database:production_up - build: - context: ./database - target: production_up - depends_on: - - mariadb - networks: - - internal-net - environment: - - NODE_ENV="production" - - DB_HOST=mariadb + env: + NODE_ENV: "production" + DB_HOST: mariadb steps: - name: get mariadb container id run: echo "::set-output name=id::$(docker container ls | grep mariadb | awk '{ print $1 }')" @@ -441,6 +434,8 @@ jobs: - 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 -d gradido/database:production_up --env NODE_ENV=production --env DB_HOST=mariadb --target production_up - name: Start Login-Server run: docker run --network ${{ steps.network.outputs.id }} --name=login-server -d gradido/login_server:with-config - name: get login-server container id