try fixing buildx proxy

This commit is contained in:
Guillaume LEGENDRE 2024-02-21 19:27:28 +01:00 committed by GitHub
parent d0d0fd24a8
commit 3a85f1bd54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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