debug github actions

This commit is contained in:
einhorn_b 2021-05-25 11:00:21 +02:00
parent ff0c418c60
commit d8a9efb34f
2 changed files with 17 additions and 4 deletions

View File

@ -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 ##########################################################
##########################################################################

View File

@ -285,6 +285,8 @@ jobs:
volumes:
- db_vol:/var/lib/mysql
steps:
- name: Debug service
run: echo "$(docker ps)"
##########################################################################
# CHECKOUT CODE ##########################################################
##########################################################################