mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
use database for migration test db, remove debug code
This commit is contained in:
parent
d87fd70784
commit
0acb58c231
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
@ -413,22 +413,31 @@ jobs:
|
|||||||
needs: [build_test_community_server]
|
needs: [build_test_community_server]
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: gradido/mariadb:test
|
image: mariadb/server:10.5
|
||||||
env:
|
env:
|
||||||
MARIADB_ALLOW_EMPTY_PASSWORD: 1
|
MARIADB_ALLOW_EMPTY_PASSWORD: 1
|
||||||
MARIADB_USER: root
|
MARIADB_USER: root
|
||||||
# ports:
|
MARIADB_DATABASE: gradido_community_test
|
||||||
# - 3306:3306
|
|
||||||
options: --health-cmd="mysqladmin ping"
|
options: --health-cmd="mysqladmin ping"
|
||||||
--health-interval=5s
|
--health-interval=5s
|
||||||
--health-timeout=5s
|
--health-timeout=5s
|
||||||
--health-retries=3
|
--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
|
||||||
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 }')"
|
||||||
id: mariadb_container
|
id: mariadb_container
|
||||||
- name: show networks
|
|
||||||
run: echo "$(docker network ls)"
|
|
||||||
- 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
|
||||||
@ -452,12 +461,6 @@ jobs:
|
|||||||
path: /tmp
|
path: /tmp
|
||||||
- name: Load Docker Image
|
- name: Load Docker Image
|
||||||
run: docker load < /tmp/community_server.tar
|
run: docker load < /tmp/community_server.tar
|
||||||
|
|
||||||
# for debugging login-server
|
|
||||||
- name: check login-server
|
|
||||||
run: docker logs ${{ steps.login_server_container.outputs.id }}
|
|
||||||
- name: check mariadb
|
|
||||||
run: docker logs ${{ steps.mariadb_container.outputs.id }}
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# UNIT TESTS BACKEND COMMUNITY-SERVER #######################################
|
# UNIT TESTS BACKEND COMMUNITY-SERVER #######################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user