docs(deploy): document production runtime image gate
This commit is contained in:
@@ -154,6 +154,15 @@ def test_subscription_api_is_not_wired_to_ui_until_backend_exists():
|
||||
assert importers == []
|
||||
|
||||
|
||||
def test_deployment_docs_forbid_production_runtime_builds():
|
||||
docs = Path("docs/DEPLOYMENT.md").read_text(encoding="utf-8")
|
||||
|
||||
assert "runtime-images-<tag>.tar" in docs
|
||||
assert "禁止在生产机上构建 API/Worker 镜像" in docs
|
||||
assert "不是构建机" in docs
|
||||
assert "缺少 tar 时 `infra/docker/deploy-production.sh` 必须失败" in docs
|
||||
|
||||
|
||||
def test_runtime_image_release_scripts_keep_builds_off_production():
|
||||
build_script = Path("scripts/build_release_images.sh").read_text(encoding="utf-8")
|
||||
deploy_script = Path("scripts/deploy_release_images_production.sh").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user