How do you keep pipeline definitions DRY across hundreds of repos?
IntermediateProductionPipeline Design and Architecture
Answer
Centralise into versioned building blocks: GitHub reusable workflows and composite actions, GitLab CI/CD components, Jenkins shared libraries. Each service's pipeline becomes ~15 lines declaring inputs (language, deploy target). Version with SemVer tags, publish a changelog, use Dependabot/Renovate to bump versions, and keep a deprecation policy. Avoid mega-templates with 40 inputs; offer a few opinionated "golden paths" instead and let teams opt out with justification.
jobs:
ci:
uses: acme/platform-workflows/.github/workflows/[email protected]
with: { java-version: '21', deploy-target: eks-prod }
secrets: inherit
More on Pipeline Design and Architecture
What does a good production CI/CD pipeline look like end to end?BeginnerWhat is your target feedback time for CI and how do you hit it?IntermediateHow do you structure repositories: app repo, config repo, pipeline library?IntermediateHow do you design a pipeline for a monorepo with 50 services?AdvancedShould every merge to main deploy to production automatically?IntermediateHow do you make a pipeline idempotent and safe to re-run?Intermediate