@routerhub/agent-rules 1.5.25 → 1.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.base.md +2 -6
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
|
@@ -226,10 +226,6 @@ Closes #456
|
|
|
226
226
|
|
|
227
227
|
<!-- @domain: devops -->
|
|
228
228
|
|
|
229
|
-
##
|
|
229
|
+
## 部署规则
|
|
230
230
|
|
|
231
|
-
-
|
|
232
|
-
- 部署时打包镜像必须统一使用当前 git 提交的 hash 作为镜像 tag 和版本号;项目内所有服务/镜像都必须使用同一个值,无论该镜像是否有代码改动,确保所有镜像版本号一致后再发版。
|
|
233
|
-
- 部署通过 Portainer 管理界面操作,禁止 SSH 手动执行 docker 命令;地址和账号配置在 `AGENTS.private.md` 或环境变量中,禁止硬编码。
|
|
234
|
-
- 始终通过 Portainer API 更新 Stack 环境变量触发重新部署,不要 SSH 手动操作 Portainer 管理的容器。
|
|
235
|
-
- 测试环境和生产环境都通过 Portainer 部署,严禁 SSH 手动操作。测试环境是 Edge Agent(endpoint 7, stack 31),tunnel 按需建立、空闲自动断开,调 API 前必须先请求 `/endpoints/7/docker/info` 预热 tunnel;推荐直接用 `python3 portainer-update-stack.py <VERSION>` 部署(内置 tunnel 预热 + 重试)。生产环境是 Docker API(endpoint 8, stack 26),`APP_VERSION` 三服务共用。
|
|
231
|
+
- 部署方式因项目而异,具体部署规则请在项目 `AGENTS.private.md` 中按需定义。
|