The CML golden path
CML is the Institute of Environmental Sciences at Leiden University, whose software repos live in the CMLPlatform GitHub organisation. This page is the one route a CML repo takes with this template, from the first render to a running, monitored service. It is the second audience of decision 0008: the template becomes the golden path for CML repos once three of them render from it and update through their weekly PR.
Each step names where the detail lives. This page adds no settings of its own.
The route
- Render. Run
copier copyfrom a pushed release tag, with a preset or your own answers. A research package or data pipeline picks theresearchordata-pipelinekind; a service picksweb-service. Runjust check. - Layer the CML files. Contacts, org defaults and telemetry belong to a separate CML template applied after this one, with its own
.copier-answers.cml.yml(Layering another template). This template stays free of any one organisation's setup. The weeklycopier-updatePR updates both answers files (Updates). - CI. Every render gets the CI workflows and git hooks in CI checks: pinned actions, least-privilege permissions, lint, types, tests and dependency audits for each stack. There is no cross-repo reusable workflow: each repo carries its own copy and
copier updatekeeps the copies current. - Citation. A licensed library, research package or data pipeline renders
CITATION.cffandcodemeta.json, kept consistent bycitesync(Public repositories and citation). - Signed release. Add your SSH signing key to
.github/allowed_signers, then runjust release X.Y.Z, review the release, runjust review-stamp, merge both commits and runjust release X.Y.Zagain. CI publishes only from a tag that key signed, with Sigstore provenance (Publishing, Signed release tags, First release). - Container. The
dockerstack builds a Python image, scanned with Trivy, and withpublish_to_ghcrpushes it to GitHub Container Registry with an attestation (Choosing your stacks, CI checks). - Deploy. A server that runs images without building them uses a Compose-only repo with the
compose-deploy.ymlpreset. A static site or web app deploys frommainas Hosting describes. - Telemetry. A
web-serviceexports traces and request-duration histograms over OTLP whenOTEL_EXPORTER_OTLP_ENDPOINTis set. Point it at the CML monitoring hub and setOTEL_RESOURCE_ATTRIBUTEStoproject=<slug>,env=production, the two keys the hub uses to tell projects and environments apart (web-service telemetry). The hub's Alloy spoke template lives with the monitoring hub and is applied as the CML layer; its steps are in that repo, not here.
Adoption count
Issue #221 measures adoption against the inventory of the CMLPlatform organisation taken on 2026-09-27: CI in 5 of 19 repos and a CITATION.cff in 1. The count is repeated every quarter, and the next one is due in 2027-01. The recount is a queue task, not template code, so it lives with the agent task queue rather than in this repo.