chore(release): .env.deploy 配 BUILD_PROXY 时构建镜像自动经代理

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-06 17:52:12 +08:00
1 parent d0cce8a244
commit 69d820a6bf
4 files changed
+14 -1

No files matched your search

+8 -1
View File
@@ -63,7 +63,14 @@ set_env SOURCE_REVISION "$head"
if [ $BUILD -eq 1 ]; then
echo "▶ 构建 uhd-media-tool:$tag"
compose build app
# 构建阶段要下载 Deno 运行时等外网资源;.env.deploy 配了 BUILD_PROXY 时经它构建(直连可能卡住,见 lessons #30)
build_proxy=$(sed -n 's/^BUILD_PROXY=//p' "$ENV_FILE" | tail -1)
if [ -n "$build_proxy" ]; then
compose build --build-arg HTTPS_PROXY="$build_proxy" --build-arg HTTP_PROXY="$build_proxy" \
--build-arg NO_PROXY=localhost,127.0.0.1 app
else
compose build app
fi
fi
echo "▶ 替换 app"
compose up -d --no-deps app