diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index ccea82a38..2a1c6aeb6 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -55,21 +55,32 @@ jobs: ############################################################################## # JOB: DOCKER BUILD AND TEST COMMUNITY SERVER ################################ ############################################################################## - build_test_community_server: + test_community_server_debug: name: Docker Build Test - Community Server runs-on: ubuntu-latest #needs: [nothing] services: mariadb: - image: gradido/mariadb:test + image: mariadb/server:10.5 env: MARIADB_ALLOW_EMPTY_PASSWORD: 1 MARIADB_USER: root + MARIADB_DATABASE: gradido_community_test ports: - 3306:3306 - volumes: - - db_vol:/var/lib/mysql + options: --health-cmd="mysqladmin ping" + --health-interval=5s + --health-timeout=2s + --health-retries=3 steps: + - name: Get MySQL service ID + id: mariadb-service + run: echo "::set-output name=container-id::$(docker ps | grep -i mariadb | awk '{print $1}')" + - name: Debug service + run: echo "$(docker ps)" + #- name: Get Github network gateway address + #id: github-network + #run: echo "::set-output name=gateway-address::$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.Gateway}}{{end}}' ${{ steps.mariadb-service.outputs.container-id }})" ########################################################################## # CHECKOUT CODE ########################################################## ########################################################################## diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc0b1f37d..a50dc202c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -285,6 +285,8 @@ jobs: volumes: - db_vol:/var/lib/mysql steps: + - name: Debug service + run: echo "$(docker ps)" ########################################################################## # CHECKOUT CODE ########################################################## ##########################################################################