ci: simplify buildx no-proxy config

This commit is contained in:
2026-04-24 19:21:51 +08:00
parent 5279448fc7
commit c5c49d62bf
Vendored
+8 -2
View File
@@ -80,9 +80,12 @@ pipeline {
sudo docker buildx create \ sudo docker buildx create \
--name ${BUILDER_NAME} \ --name ${BUILDER_NAME} \
--driver docker-container \ --driver docker-container \
--driver-opt 'env.HTTP_PROXY=http://192.168.5.200:7890' \
--driver-opt 'env.HTTPS_PROXY=http://192.168.5.200:7890' \
--driver-opt 'env.NO_PROXY=reg.nxsir.cn' \
--driver-opt 'env.http_proxy=http://192.168.5.200:7890' \ --driver-opt 'env.http_proxy=http://192.168.5.200:7890' \
--driver-opt 'env.https_proxy=http://192.168.5.200:7890' \ --driver-opt 'env.https_proxy=http://192.168.5.200:7890' \
--driver-opt 'env.no_proxy=127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn' \ --driver-opt 'env.no_proxy=reg.nxsir.cn' \
--use --use
fi fi
sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null
@@ -116,9 +119,12 @@ pipeline {
sudo docker buildx create \ sudo docker buildx create \
--name ${BUILDER_NAME} \ --name ${BUILDER_NAME} \
--driver docker-container \ --driver docker-container \
--driver-opt 'env.HTTP_PROXY=http://192.168.5.200:7890' \
--driver-opt 'env.HTTPS_PROXY=http://192.168.5.200:7890' \
--driver-opt 'env.NO_PROXY=reg.nxsir.cn' \
--driver-opt 'env.http_proxy=http://192.168.5.200:7890' \ --driver-opt 'env.http_proxy=http://192.168.5.200:7890' \
--driver-opt 'env.https_proxy=http://192.168.5.200:7890' \ --driver-opt 'env.https_proxy=http://192.168.5.200:7890' \
--driver-opt 'env.no_proxy=127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn' \ --driver-opt 'env.no_proxy=reg.nxsir.cn' \
--use --use
fi fi
sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null