CICD-410 · Automated repository scaffolding
Encyclopedia · Preview environments and developer experience · All snippets
Previous · CICD-409 · Next · CICD-411
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites trusted preview controller, disposable environment and scoped identities for external resources.
- Platforms kubernetes, local-lab.
- Parameters
SERVICE_NAME.
2. Copy the snippet
bash
[[ "${SERVICE_NAME:?}" =~ ^[a-z][a-z0-9-]{2,39}$ ]]
cookiecutter --no-input ./service-template "service_name=$SERVICE_NAME"
test -f "$SERVICE_NAME/README.md"3. How it works
The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.
4. Verify the result
Use a trusted template checkout. Review generated files and run its pipeline before onboarding.
Validation syntax-validated (Bash parse). Status definitions.