Demonstration study. The workflow below describes the approved pipeline as an architectural goal, not yet deployed in this laboratory.
Continuous delivery with traceability
Publishing an article should be treated as a version-controlled software change. Content remains in Markdown in Git; editorial review takes place before integration; and artifacts are generated from an identifiable revision.
The planned architecture uses AWS CodeCommit as the repository, AWS CodePipeline to orchestrate stages and AWS CodeBuild to perform generation. The local website does not contain privileged IAM configuration or automate infrastructure.
Quality gates before publication
The build script verifies the selected binaries and editorial metadata before generating the files. Generation takes place in a new directory to avoid reusing results from removed articles.
BASE_URL=http://127.0.0.1:8000/ \
./scripts/build.sh --local
| Stage | Acceptance criterion |
|---|---|
| Editorial validation | Unique slugs, valid dates and exclusion of drafts |
| Compilation | Hugo completes without errors or blocking warnings |
| Search | Pagefind indexes only eligible articles |
| Artifacts | Consistent links, canonical URLs, RSS and sitemap |
| Publication | Only a validated set proceeds to distribution |
CodeBuild can run this process with a public URL supplied by the infrastructure. Its build specification should identify the output files and expose only the validated public/ directory.
Recovering from a defective publication
The architectural decision prioritizes native AWS CodePipeline V2 stage rollback, accompanied by validation of S3 object consistency and CloudFront caching.
Rollback restores the revision and artifacts associated with the target execution. There are restrictions: the source stage cannot be rolled back, and the selected execution must belong to the current pipeline structure version. This does not guarantee an atomic restoration of all website objects.
A complementary manual procedure should establish how to verify the restored set and handle obsolete files. Approved editorial commits must be preserved even when the public version temporarily returns to an earlier release.
Success indicators
- The build execution must be traceable to its source commit.
- A validation error must prevent delivery of a new artifact.
- Rollback must be tested with a deliberately defective release.
- The 30-minute RTO target for recoverable incidents must be measured in a real exercise. It is not yet a proven capability.
The focus is on obtaining evidence of recovery, not merely a success indication in the pipeline console.