Design a cloud service that takes content (markdown, templates) and produces static HTML/CSS/JS artifacts stored for CDN delivery. Support build triggers on git push or CMS publish, artifact versioning, and rollback.
Functional requirements
- Trigger builds from webhook or API with source reference
- Run templating and asset pipeline to output static files
- Publish artifacts to object storage with atomic cutover
- List build history and roll back to a prior version
Non-functional requirements
- Isolated build workers (sandbox) for untrusted templates
- Reproducible builds with locked dependencies
- Fast CDN propagation and cache invalidation on deploy