mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add database like login-server
This commit is contained in:
parent
0acb58c231
commit
3e1f0dfa12
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@ -413,7 +413,7 @@ jobs:
|
|||||||
needs: [build_test_community_server]
|
needs: [build_test_community_server]
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb/server:10.5
|
image: gradido/mariadb:test
|
||||||
env:
|
env:
|
||||||
MARIADB_ALLOW_EMPTY_PASSWORD: 1
|
MARIADB_ALLOW_EMPTY_PASSWORD: 1
|
||||||
MARIADB_USER: root
|
MARIADB_USER: root
|
||||||
@ -424,16 +424,9 @@ jobs:
|
|||||||
--health-retries=3
|
--health-retries=3
|
||||||
database:
|
database:
|
||||||
image: gradido/database:production_up
|
image: gradido/database:production_up
|
||||||
build:
|
env:
|
||||||
context: ./database
|
NODE_ENV: "production"
|
||||||
target: production_up
|
DB_HOST: mariadb
|
||||||
depends_on:
|
|
||||||
- mariadb
|
|
||||||
networks:
|
|
||||||
- internal-net
|
|
||||||
environment:
|
|
||||||
- NODE_ENV="production"
|
|
||||||
- DB_HOST=mariadb
|
|
||||||
steps:
|
steps:
|
||||||
- name: get mariadb container id
|
- name: get mariadb container id
|
||||||
run: echo "::set-output name=id::$(docker container ls | grep mariadb | awk '{ print $1 }')"
|
run: echo "::set-output name=id::$(docker container ls | grep mariadb | awk '{ print $1 }')"
|
||||||
@ -441,6 +434,8 @@ jobs:
|
|||||||
- name: get automatic created network
|
- name: get automatic created network
|
||||||
run: echo "::set-output name=id::$(docker network ls | grep github_network | awk '{ print $1 }')"
|
run: echo "::set-output name=id::$(docker network ls | grep github_network | awk '{ print $1 }')"
|
||||||
id: network
|
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
|
- name: Start Login-Server
|
||||||
run: docker run --network ${{ steps.network.outputs.id }} --name=login-server -d gradido/login_server:with-config
|
run: docker run --network ${{ steps.network.outputs.id }} --name=login-server -d gradido/login_server:with-config
|
||||||
- name: get login-server container id
|
- name: get login-server container id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user