fix(release): prevent runtime builds on production host
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled

This commit is contained in:
Xiaoxia AI
2026-06-22 15:00:23 +08:00
parent ccc6aa27e8
commit 7716371c8d
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -126,3 +126,4 @@ Staging 当前可以保持 no-op;Production 开启前必须先验证 SMTP/Redi
- 生产环境必须设置 `DEBUG=false`。
- staging / production 不允许开启 `AUTO_CREATE_SCHEMA` 绕过 Alembic。
- 生产机禁止构建 API/Worker runtime 镜像;如发现需要构建,先补构建机/CI 产物流程,不得临时开启生产构建。
- `scripts/build_release_images.sh` 会检测生产容器;如果当前机器运行生产服务,默认拒绝构建 runtime 镜像。