ci: route BuildKit registry traffic through proxy

This commit is contained in:
2026-08-11 23:04:52 +08:00
parent 0eb47e9918
commit dc9ab046c5
Vendored
+4 -1
View File
@@ -37,7 +37,7 @@ pipeline {
NGINX_IMAGE = 'docker.m.daocloud.io/library/nginx:1.27-alpine' NGINX_IMAGE = 'docker.m.daocloud.io/library/nginx:1.27-alpine'
HTTP_PROXY_URL = 'http://192.168.5.200:7890' HTTP_PROXY_URL = 'http://192.168.5.200:7890'
NO_PROXY_HOSTS = '127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn,openlist.nxsir.cn,mirrors.tuna.tsinghua.edu.cn,.tsinghua.edu.cn,mcr.microsoft.com,docker.m.daocloud.io' NO_PROXY_HOSTS = '127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn,openlist.nxsir.cn,mirrors.tuna.tsinghua.edu.cn,.tsinghua.edu.cn,mcr.microsoft.com'
CI_ROOT = "${WORKSPACE}/.ci" CI_ROOT = "${WORKSPACE}/.ci"
DOCKER_CONFIG = "${WORKSPACE}/.ci/docker" DOCKER_CONFIG = "${WORKSPACE}/.ci/docker"
@@ -199,6 +199,9 @@ pipeline {
--driver docker-container \ --driver docker-container \
--driver-opt "image=$BUILDKIT_IMAGE" \ --driver-opt "image=$BUILDKIT_IMAGE" \
--driver-opt network=host \ --driver-opt network=host \
--driver-opt "env.http_proxy=$HTTP_PROXY_URL" \
--driver-opt "env.https_proxy=$HTTP_PROXY_URL" \
--driver-opt "env.no_proxy=$NO_PROXY_HOSTS" \
--use --use
./scripts/ci-docker.sh buildx inspect "$BUILDER_NAME" --bootstrap ./scripts/ci-docker.sh buildx inspect "$BUILDER_NAME" --bootstrap
''' '''