From 4737501a1f1e4c5576b6da7f82ecd8464d13ac73 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Fri, 30 Jul 2021 11:48:20 +0200 Subject: [PATCH] propagate goma-server ip to container --- .github/workflows/build_bromite.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_bromite.yaml b/.github/workflows/build_bromite.yaml index 477e1e0..7024c47 100644 --- a/.github/workflows/build_bromite.yaml +++ b/.github/workflows/build_bromite.yaml @@ -140,6 +140,11 @@ jobs: # - 5050:5050 volumes: - /tmp/proxy:/tmp/proxy + options: >- + --health-cmd "hostname -I >/tmp/proxy/gomaserverip" + --health-interval 1000m + --health-timeout 5s + --health-retries 5 env: REDISHOST: redis REMOTEEXEC_ADDR: ${{ secrets.REMOTEEXEC_ADDR }} @@ -162,6 +167,11 @@ jobs: env: GOMAJOBS: 60 run: | - cd /home/lg/working_dir/ export WORKSPACE=/home/lg/working_dir + cd $WORKSPACE + + export SERVER_HOST_GOMA=$(cat /tmp/proxy/gomaserverip | xargs) + # get goma internal server ip + # SERVER_HOST_GOMA=$(docker inspect -f '{{.Config.Image}}={{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) | grep goma-server | sed 's/[^=]*=\(.*\)/\1/' | xargs) + ./start-build.sh