CI / CD (orchestrator)
The repository's own top-level pipeline. Unlike the other docs here, this is not a reusable workflow_call workflow — it is the caller that wires the reusable workflows together on pushes to the default branch. Use it as a reference example for composing the building blocks in your own repo.
Triggers
yaml
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:concurrencyis keyed on${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}; only pull-request runs are cancelled by a newer push, so an in-flight release onmainalways finishes. A pull request groups on its number because, once it is merged,github.refof its runs is the base branch: a run approved or re-run after the merge would otherwise joinmain's group and cancel the release run.- Top-level
permissions: {}(deny-all): each job grants only what it needs, and a reusable workflow never gets more than its caller job grants.
Jobs
| Job | Runs when | Calls | Purpose |
|---|---|---|---|
ci-shell | push + PR | ci-shell.yml | ShellCheck, actionlint, Bats and docs checks, with the actions of this commit |
ci-actions | push + PR | ./.github/actions/* | Same checks with this checkout's actions, plus kubeconform on a fixture, notify-deployment and the pinned Claude Code |
ci-zizmor | push + PR | zizmorcore/zizmor-action | GitHub Actions security lint, pedantic persona |
ci-prek | push + PR | ci-prek.yml | This repo's prek hooks |
ci-image | push + PR | ./…/cd-docker.yml (local) | A fixture image built for linux/amd64 without a push: the build workflow's self-test |
security | push + PR | security.yml | Gitleaks, dependency review and CodeQL (actions, python) |
ci-checksums | push + PR | scripts/update-tool-checksums.py | install-tool's tools.json matches the release assets, when a pin changed |
ci-commits | push + PR | change-base, check-commit-msg | Conventional Commits on every commit since the change base |
ci-gate | push + PR | — | The ruleset's single required check: every job above succeeded |
pr-description | PR | ./…/pr-description.yml (local) | Pull request description written by Claude Code, outside the gate |
release | push to main | ./…/release.yml (local) | release-please PR, tags and v0.<minor> alias, once ci-gate passed |
propagate | after a release | ./…/propagate-release.yml (local) | A pull request in each consumer repository that moves its pins to the release |
Notes
- The CI jobs also run on the release-please PR and on the
chore(main): releasecommit: the reusable workflows reach their actions withuses: $/…, so nothing points at a tag that does not exist yet. A PR opened byGITHUB_TOKENwaits for "Approve workflows to run". pr-descriptionis not inci-gate's needs: a missingCLAUDE_CODE_OAUTH_TOKENsecret or a model error never blocks a merge.releaseuses a local ref: GitHub validateswith:inputs against the referenced workflow at parse time, so a remote@mainref would reject inputs a branch adds torelease.ymlbefore they are merged.propagateruns only when thePROPAGATE_REPOSITORIESvariable is set, with the GitHub App ofRELEASE_APP_CLIENT_IDandRELEASE_APP_PRIVATE_KEY;propagate.ymlruns it by hand as a dry run. Seepropagate-release.- Dependency updates come from
dependencies.yml, outside this pipeline: it runs Renovate every day through the reusablerenovateworkflow, with a token of the same GitHub App, so its pull requests run CI like any other.renovate.json, on top of the shared presetKevinDeBenedetti/renovate-config, decides what is updated and when. A manual run is a dry run unless unticked. - Docs are not pushed anywhere: the central docs site polls this repo on a schedule (see
cd-docs.md).ci-shellverifies them.