Commit Graph
7 Commits
Author SHA1 Message Date
ops fdb9f5109f ci: apk 源统一走 aliyun(规避 dl-cdn 时段性被拦卡 60s) 2026-10-21 01:37:01 +00:00
chenxing c3fbfeefa8 ci(build): 前端构建挂宿主 npm 缓存卷 + 切国内镜像源,治 CI 13 分钟慢
build / build (push) Successful in 4m16s
- 实测 build #10 耗时 13分5秒,其中 npm install 占 12分46秒(97.6%,added 754 packages in 13m),
  vite build 仅 16.53s —— 瓶颈唯一且固定在依赖安装
- 根因:① 每次起全新 node:20 容器、装完即 rm -f,node_modules 零缓存;
  ② .npmrc / yarn.lock 均被 .gitignore 忽略 ⇒ CI 走公网 registry.npmjs.org 跨境下载 + 无 lock 全量解析
- 修复(照 notice/service 的 m2 缓存做法):
  - 挂 -v /opt/docker/projman-npm-cache:/root/.npm,npm 缓存落宿主、跨构建复用
  - npm config set registry https://registry.npmmirror.com,跨境改境内
  - npm install 加 --prefer-offline,优先命中宿主缓存
- 预期 13min → 3~5min;首次构建缓存为空不改善,第二次起见效
2026-09-30 10:01:10 +08:00
chenxing a0f104d1b4 fix(ci): npm install --ignore-scripts(node-sass@6 遗留依赖在 node:20 无预编译必炸;vite 实际走 dart-sass)
build / build (push) Successful in 14m15s
2026-09-19 14:21:21 +08:00
chenxing 2c7d6cdf0a fix(ci): npm ci→npm install(本仓不提交 lock,ci 无 lock 必 EUSAGE)
build / build (push) Failing after 14m53s
2026-09-19 13:58:13 +08:00
chenxing efd3b57826 feat(msgcenter): 消息中心 WS 实时推送前端 + CI 接入 projman 自动链路
build / build (push) Failing after 13s
- Header.vue:铃铛未读角标 + WS 客户端(25s 心跳/断线 5s 重连换新票/newMessage 红点+1+Notice 弹提示)
- BaseApi.ts:getMsgCenterWsTicket(POST /api/msgCenter/wsTicket 代签一次性票据)
- index.html:修复 lodash 引用路径(./libs/lodash.min.js,dev 404 致白屏)
- CI:build.yml 照 notice/front 模板(构建→zip→Nexus front-hosted→webhook 建档);
  userhome deployMode=auto,webhook 后自动发布;凭据 prod.env+projman DB 直读(不走仓库 Secrets)
2026-09-19 13:48:32 +08:00
chenxing 0e3bd97c55 10号功能修订 2026-09-10 09:47:46 +08:00
admin a53ce07228 ci: init build workflow [skip ci] 2026-09-09 16:32:39 +08:00