menu_book Course Curriculum (CI/CD & DevOps Pipelines) expand_more
Pipeline Foundations
Triggers, Change Detection & Concurrency
Build, Test & Quality Gates
Artifacts, Containers & Supply Chain
Secrets, Identity & Environment Controls
Deployment Strategies & Database Safety
Pipeline Engines & Reuse
Trunk-based delivery workflow
Learn Trunk-based delivery workflow through a production-oriented CI/CD example, operational guidance, and a mastery check.
12 min read
•
Beginner
trunk-check.sh
bash
#!/usr/bin/env bash
set -euo pipefail
branch="${CI_BRANCH:-$(git branch --show-current)}"
if [[ "$branch" != "main" ]]; then
echo "Short-lived branch: verify only"
exit 0
fi
./ops/release-candidate.sh "$(git rev-parse HEAD)"
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content