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]
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user