Interview Prep/Real-World Interview/CI/CD pipeline deep-dive

How did you share pipeline logic across many repositories?

IntermediateBehavioralCI/CD pipeline deep-dive
Answer

Good answer looks like → "Reusable workflows in a central repo, called with uses: org/ci-templates/.github/workflows/build.yml@v3, pinned to a tag. Inputs covered language and Dockerfile path. Breaking changes went into a new major tag so teams upgraded on their own schedule." For Jenkins: a shared library; for GitLab: include: with templates.

jobs:
  build:
    uses: org/ci-templates/.github/workflows/build.yml@v3
    with:
      image-name: orders-api
    secrets: inherit

Follow-ups to expect → How did you roll out a fix to all repos? How did you test changes to the shared workflow?

Red flags → Copy-pasting the same 200-line YAML into 30 repos.

All Real-World Interview questions Roadmap: Interview readiness

More on CI/CD pipeline deep-dive