The Real Piece Already in Place
cat ../recipes-origin.git/hooks/pre-receive
A real, server-side hook, installed back in Block 2.5 — genuinely rejecting any direct, non-merge commit pushed straight to master. This is CI/CD's most fundamental real building block: a git event (a push) triggering an automated, real decision (accept or reject).
Writing the Rest of the Real Picture
push to any feature/* branch -> run recipe format checks
merge to master (reviewed PR only) -> deploy docs site to staging
tag matching v*.*.* -> deploy docs site to production
push directly to master -> rejected (real, already enforced)
A real, concrete spec — not abstract theory — naming the exact real git event and the exact real automated response for each.
Committing the Real Spec
git add CI-PIPELINE.md
git commit -m "RECIPE-308: Document the CI/CD pipeline spec"
A real, permanent, committed reference — the same real discipline as every other document this curriculum has written directly into the repository.
Git is not just where code lives — every real event it produces (a push, a merge, a tag) is a genuine, reliable trigger a real CI/CD system can react to. This repository already has one real piece of this in place: the pre-receive hook installed back in Block 2.5, genuinely rejecting any direct, non-merge commit pushed straight to master.
This final lab writes down the rest of the real picture — a concrete, committed spec mapping specific git events (a push to a feature branch, a merge to master, a real release tag) to the specific automated actions a team would wire up around them, closing the loop with the branch protection already enforced server-side.
Git events as CI/CD triggers
Real, reliable signals — a push, a merge, a tag — that a real CI/CD system watches and reacts to automatically. Confirmed directly across this entire certificate: the pre-receive hook (Block 2.5), branch structure (Block 2.2), and tags (Block 3.5) are all real building blocks CI/CD systems build on.
Takeaways
- Git events (push, merge, tag) are real, reliable triggers a CI/CD system can react to automatically
- A server-side hook like the pre-receive one from Block 2.5 is itself a real, working piece of CI/CD infrastructure
- A concrete, committed pipeline spec documents exactly which git event triggers which real automated action
- Every earlier block in this certificate — branches, protected branches, tags, hooks — is a real building block CI/CD is configured around