docs: 补充 Drone 构建 swap 与 clone depth 说明

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-23 16:15:29 +08:00
1 parent 61fdb6ebcd
commit ef7ea3c190
1 file changed
+2 -1
+2 -1
View File
@@ -27,7 +27,8 @@ docker logs drone-runner 2>&1 | tail -20
云安全组 / 主机防火墙放行 **TCP 18088**(本方案默认端口;勿用未放行的 8080)。
流水线关闭了默认 `drone/git` clone(国内难拉),在 `node:20-bookworm` 内直接 `git clone` 本机 Gogs。
流水线使用默认 `drone/git` clone(`depth: 1`)。构建镜像需预拉 `node:20-bookworm`。
测试机内存约 3.6G,已加 `/swap-drone`(4G)并限制 Node 堆,避免 web-admin 构建 OOM。
## 2. 登录与激活仓库