Add proxy support

This commit is contained in:
uazo 2021-07-30 09:30:54 +02:00 committed by GitHub
parent 002a46b1a7
commit 54a048de6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ on:
env: env:
BROMITE_SHA: 76745fde6ed75542f005ea5528f486df41c56da4 BROMITE_SHA: 76745fde6ed75542f005ea5528f486df41c56da4
REMOVEDOCKERSUPPORT: true REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true
jobs: jobs:
check_images: check_images:
@ -129,8 +130,6 @@ jobs:
--health-interval 10s --health-interval 10s
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
env:
REMOVEDOCKERSUPPORT: true
gomaserver: gomaserver:
image: uazo/goma-server image: uazo/goma-server
#ports: #ports:
@ -140,19 +139,27 @@ jobs:
env: env:
REDISHOST: redis REDISHOST: redis
REMOTEEXEC_ADDR: ${{ secrets.REMOTEEXEC_ADDR }} REMOTEEXEC_ADDR: ${{ secrets.REMOTEEXEC_ADDR }}
REMOVEDOCKERSUPPORT: true
container: container:
image: uazo/bromite-build:76745fde6ed75542f005ea5528f486df41c56da4 #${{ env.BROMITE_SHA }} image: uazo/bromite-build:76745fde6ed75542f005ea5528f486df41c56da4 #${{ env.BROMITE_SHA }}
env: env:
SERVER_HOST_GOMA: gomaserver SERVER_HOST_GOMA: gomaserver
USELOCALIMAGE: true
REMOVEDOCKERSUPPORT: true
volumes: volumes:
- /storage/bromite/${{ github.sha }}:/home/lg/working_dir/artifacs - /storage/bromite/${{ github.sha }}:/home/lg/working_dir/artifacs
- /tmp/proxy:/tmp/proxy - /tmp/proxy:/tmp/proxy
steps: steps:
- name: Get current proxy settings
shell: bash
run: |
if ! [[ -z "${HTTP_PROXY}" ]]; then
PROXY_ADDR=http://$(hostname -I | xargs):8118
echo "HTTP_PROXY=$PROXY_ADDR" >> $GITHUB_ENV
echo "HTTPS_PROXY=$PROXY_ADDR" >> $GITHUB_ENV
echo "http_proxy=$PROXY_ADDR" >> $GITHUB_ENV
echo "https_proxy=$PROXY_ADDR" >> $GITHUB_ENV
fi
- name: Build Bromite - name: Build Bromite
shell: bash shell: bash
env: env: