build: fix container image

This commit is contained in:
uazo 2021-07-31 11:11:13 +02:00 committed by GitHub
parent cc8189a871
commit 348fbd5fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,15 @@ jobs:
fi
fi
- name: Mark image to build
shell: bash
run: |
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:build > /dev/null ; echo $?)
if [ $IS_PRESENT -eq "1" ]; then
docker rmi uazo/bromite-build:build
fi
docker tag uazo/bromite-build:$BROMITE_SHA uazo/bromite-build:build
build:
runs-on: self-hosted
needs: check_images
@ -152,7 +161,7 @@ jobs:
USELOCALIMAGE: true
container:
image: uazo/bromite-build:76745fde6ed75542f005ea5528f486df41c56da4 #${{ env.BROMITE_SHA }}
image: uazo/bromite-build:build
env:
SERVER_HOST_GOMA: gomaserver
REMOVEDOCKERSUPPORT: true # CUSTOM RUNNER: remove sharing of docker socket
@ -176,8 +185,8 @@ jobs:
http_proxy=
https_proxy=
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)
export SERVER_HOST_GOMA=$(cat /tmp/proxy/gomaserverip | xargs)
./start-build.sh