diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 09dd37afb..c8c05c74e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -30,6 +30,9 @@ jobs: with: driver: docker # 明确指定使用 docker 驱动 network: host + driver-opts: | + env.http_proxy=http://10.0.0.52:7890 + env.https_proxy=http://10.0.0.52:7890 - name: 从标签名中提取版本号 @@ -58,10 +61,6 @@ jobs: build-args: | GOLANG_CI_LINT_VERSION=v1.68.0 BUILD_TAGS="" - HTTP_PROXY=http://10.0.0.52:7890 # 添加HTTP代理 - HTTPS_PROXY=http://10.0.0.52:7890 # 添加HTTPS代理 - # GOPROXY=https://goproxy.cn,direct - # GOSUMDB=off labels: | org.opencontainers.image.title=Virtual Kubelet org.opencontainers.image.description=Kubernetes Virtual Kubelet implementation