ci: drop NO_PROXY from buildkit driver-opt to avoid comma parsing in docker CLI

Docker buildx create --driver-opt splits values on commas as list
separators, causing 'env.NO_PROXY=127.0.0.1,localhost,...' to be parsed
as separate key=value entries and failing with:
  invalid value "localhost", expecting k=v

The NO_PROXY hosts for build containers are already passed via build-arg
in the build stage; the buildkit container itself doesn't need them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-02 19:38:50 +08:00
co-authored by Claude Opus 4.8
parent 293aa31f60
commit fbf6b52a08
Vendored
-2
View File
@@ -111,10 +111,8 @@ EOF
--driver-opt network=host \ --driver-opt network=host \
--driver-opt 'env.HTTP_PROXY=${HTTP_PROXY_URL}' \ --driver-opt 'env.HTTP_PROXY=${HTTP_PROXY_URL}' \
--driver-opt 'env.HTTPS_PROXY=${HTTP_PROXY_URL}' \ --driver-opt 'env.HTTPS_PROXY=${HTTP_PROXY_URL}' \
--driver-opt 'env.NO_PROXY=${NO_PROXY_HOSTS}' \
--driver-opt 'env.http_proxy=${HTTP_PROXY_URL}' \ --driver-opt 'env.http_proxy=${HTTP_PROXY_URL}' \
--driver-opt 'env.https_proxy=${HTTP_PROXY_URL}' \ --driver-opt 'env.https_proxy=${HTTP_PROXY_URL}' \
--driver-opt 'env.no_proxy=${NO_PROXY_HOSTS}' \
--config \$BUILDKITD_TOML \ --config \$BUILDKITD_TOML \
--use --use
sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null