From 3a85f1bd54416d3724ed1677767ae13aebd91726 Mon Sep 17 00:00:00 2001 From: Guillaume LEGENDRE Date: Wed, 21 Feb 2024 19:27:28 +0100 Subject: [PATCH] try fixing buildx proxy --- .github/workflows/build.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 03cf479c..30f3455c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -78,6 +78,10 @@ jobs: uses: docker/setup-buildx-action@v3.0.0 with: install: true + driver-opts: | + env.http_proxy=localhost:1055 + env.https_proxy=localhost:1055 + env.no_proxy='localhost,127.0.0.1,::1,*.github-runners.huggingface.tech,*.amazonaws.com,*.docker.io,*.docker.com,cdn.auth0.com,*.cloudfront.net' - name: Inject slug/short variables uses: rlespinasse/github-slug-action@v4.4.1 - name: Tailscale @@ -144,6 +148,9 @@ jobs: build-args: | GIT_SHA=${{ env.GITHUB_SHA }} DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }} + http_proxy=localhost:1055 + https_proxy=localhost:1055 + no_proxy='localhost,127.0.0.1,::1,*.github-runners.huggingface.tech,*.amazonaws.com,*.docker.io,*.docker.com,cdn.auth0.com,*.cloudfront.net' tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }} labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }} cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:cache,mode=min