This commit is contained in:
hashbro
2026-08-09 02:42:45 +08:00
parent e730bba4a5
commit 9153a4f557
9 changed files with 155 additions and 6 deletions
+11 -2
View File
@@ -62,9 +62,15 @@ python new_project.py \
--root <artifact-root>/staging/<request-id> \
--channel-id <id> \
--deployment-domains <domain> ... \
--reporting-domains <domain> ...
--reporting-domains <domain> ... \
--support-template test|blank
```
`support_template` selects the `web/support.html` page:
- `test` (default): current source campaign page with lab HUD
- `blank`: loader scripts only, no HUD UI (white blank page)
It must create a channel-scoped tree below `--root`:
```text
@@ -107,10 +113,13 @@ curl -i -X POST \
https://builds.example.com/v1/channels/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/build \
-d '{
"deployment_domains": ["deploy.example"],
"reporting_domains": ["report.example"]
"reporting_domains": ["report.example"],
"support_template": "test"
}'
```
`support_template` is optional (`test` by default). Allowed values: `test`, `blank`.
The first successful build returns `201`; the same normalized input returns
`200`. A busy channel or conflicting existing release returns `409`, and an
invalid channel, JSON body, domain, or field returns `422`.