ci: escape buildx no-proxy values

This commit is contained in:
2026-04-24 19:08:24 +08:00
parent 8b605a32ca
commit 35a31fdd79
Vendored
+3 -2
View File
@@ -18,6 +18,7 @@ pipeline {
HTTP_PROXY = 'http://192.168.5.200:7890'
HTTPS_PROXY = 'http://192.168.5.200:7890'
NO_PROXY = '127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12'
NO_PROXY_DRIVER = '127.0.0.1\\,localhost\\,reg.nxsir.cn\\,gitea.nxsir.cn\\,192.168.0.0/16\\,10.0.0.0/8\\,172.16.0.0/12'
GIT_REPO_URL = 'https://gitea.nxsir.cn/nanxun/live_recorder.git'
GIT_BRANCH = 'main'
@@ -85,7 +86,7 @@ pipeline {
--driver docker-container \
--driver-opt env.http_proxy=${HTTP_PROXY} \
--driver-opt env.https_proxy=${HTTPS_PROXY} \
--driver-opt env.no_proxy=${NO_PROXY} \
--driver-opt env.no_proxy=${NO_PROXY_DRIVER} \
--use
fi
sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null
@@ -121,7 +122,7 @@ pipeline {
--driver docker-container \
--driver-opt env.http_proxy=${HTTP_PROXY} \
--driver-opt env.https_proxy=${HTTPS_PROXY} \
--driver-opt env.no_proxy=${NO_PROXY} \
--driver-opt env.no_proxy=${NO_PROXY_DRIVER} \
--use
fi
sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null