永久跳过海外直传 UpYun,国内线路全走中转机
Deploy to Production / pre-check (push) Successful in 37s
Deploy to Production / build (push) Successful in 3m56s
Deploy to Production / deploy-edgeone (push) Successful in 3m51s
Deploy to Production / finalize (push) Successful in 24s
Deploy to Production / notify-failure (push) Skipped
Deploy to Production / pre-check (push) Successful in 37s
Deploy to Production / build (push) Successful in 3m56s
Deploy to Production / deploy-edgeone (push) Successful in 3m51s
Deploy to Production / finalize (push) Successful in 24s
Deploy to Production / notify-failure (push) Skipped
海外 runner 对 UpYun v0 接口无论什么参数都是 70 秒左右 EOF (-w 10/--strong 与 -w 3 均验证),3 轮重试全败,每次部署白耗 5 分钟(build #25 日志实锤)。 直传步骤改为 if: false 永久跳过(代码保留,将来 runner 挪国内 删掉该条件即可恢复)。国内线路由腾讯云广州中转机兜底:每分钟 比对 COS build hash → 下载产物 → upx sync → 又拍云 purge → 多吉云刷新(sync.sh 自带,CI 侧不再重复刷)。
This commit is contained in:
1 parent
cc85ace7c2
commit
f032310188
1 file changed
+13
-4
@@ -289,7 +289,16 @@ jobs:
|
||||
coscmd upload public/.build_hash /__build_hash
|
||||
|
||||
- name: Upload to UpYun
|
||||
if: steps.check-upload.outputs.need_upload == 'true'
|
||||
# ┌─────────────────────────────────────────────────────────────────┐
|
||||
# │ 2026-10-03 起永久跳过海外直传:本 runner 在境外,对 UpYun v0 接口 │
|
||||
# │ 无论 -w 10/--strong 还是 -w 3 均为 70 秒左右 EOF,3 轮重试全败, │
|
||||
# │ 每次部署白耗 5 分钟(2026-10-03 build #25 日志实锤)。 │
|
||||
# │ 国内线路由腾讯云广州中转机兜底(1Panel 计划任务「又拍云同步(国内 │
|
||||
# │ 中转)」每分钟比对 COS build hash → 下载 355M → upx sync → │
|
||||
# │ 又拍云 purge → 多吉云刷新,实测 5 分钟内完成且它自己会刷 CDN)。 │
|
||||
# │ 将来若把 runner 挪到国内,把下面的 if: false 删掉即可恢复。 │
|
||||
# └─────────────────────────────────────────────────────────────────┘
|
||||
if: false && steps.check-upload.outputs.need_upload == 'true'
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
UPYUN_SERVICE: ${{ secrets.UPYUN_BUCKET }}
|
||||
@@ -585,13 +594,13 @@ jobs:
|
||||
fi
|
||||
|
||||
# 多吉云 CDN 只服务国内线路,回源是又拍云。
|
||||
# EdgeOne(境外) 部署成功 ≠ 国内源站已更新 —— UpYun 失败时刷新多吉云,
|
||||
# 只会把同一份旧内容再拉一遍,看着"刷新成功"却毫无变化(2026-10-02 踩过)。
|
||||
# 2026-10-03 起海外直传 UpYun 已永久跳过,国内线路由中转机同步,
|
||||
# sync.sh 同步完成后会自己刷多吉云 —— 这里保持 false 即可。
|
||||
if [ "$UPYUN_STATUS" = "success" ]; then
|
||||
echo "cdn_refresh=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "cdn_refresh=false" >> $GITHUB_OUTPUT
|
||||
echo "⚠️ UpYun 状态为 $UPYUN_STATUS —— 国内源站(又拍云)未更新,跳过多吉云 CDN 刷新"
|
||||
echo "ℹ️ 国内线路由中转机同步(sync.sh 完成后会自行刷新多吉云),CI 侧跳过"
|
||||
fi
|
||||
|
||||
- name: Refresh DogeCloud CDN
|
||||
|
||||
Reference in new issue
Block a user