From f3d1b4cc04e7b0e8cc1ef23bb06e3f4b5f561e18 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Fri, 28 Oct 2022 07:42:19 -0800 Subject: [PATCH] Update check_git_apply.yaml --- .github/workflows/check_git_apply.yaml | 27 +++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check_git_apply.yaml b/.github/workflows/check_git_apply.yaml index 267f2ae..a32aa2d 100644 --- a/.github/workflows/check_git_apply.yaml +++ b/.github/workflows/check_git_apply.yaml @@ -20,21 +20,26 @@ env: jobs: get-git-apply: runs-on: ci - + container: + image: uazo/build-deps:latest + env: + GITHUB_SHA: ${{ github.event.inputs.rtag }} + USELOCALIMAGE: true # CUSTOM RUNNER: permit use of local images + REMOVEDOCKERSUPPORT: false # CUSTOM RUNNER: remove sharing of docker socket + volumes: + - /tmp/proxy:/tmp/proxy + steps: - name: Prepare container run: | - sudo iptables -D INPUT -p tcp -s localhost --dport 8118 -j ACCEPT - sudo iptables -D INPUT -p tcp --dport 8118 -j DROP - - #sudo chown lg /etc/apt/apt.conf.d/proxy.conf - #sudo chown lg . - #sudo echo Acquire::http::Proxy \"http://172.18.0.1:8118\"\; >/etc/apt/apt.conf.d/proxy.conf - #export HTTPS_PROXY=http://172.18.0.1:8118 - #export HTTP_PROXY=http://172.18.0.1:8118 - #export http_proxy=http://172.18.0.1:8118 - #export https_proxy=http://172.18.0.1:8118 + sudo chown lg /etc/apt/apt.conf.d/proxy.conf + sudo chown lg . + sudo echo Acquire::http::Proxy \"http://172.18.0.1:8118\"\; >/etc/apt/apt.conf.d/proxy.conf + export HTTPS_PROXY=http://172.18.0.1:8118 + export HTTP_PROXY=http://172.18.0.1:8118 + export http_proxy=http://172.18.0.1:8118 + export https_proxy=http://172.18.0.1:8118 wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb