Interview Prep/CI/CD/Pipeline Design and Architecture

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
All CI/CD questions Roadmap: CI/CD fundamentals

More on Pipeline Design and Architecture