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.
More on CI/CD pipeline deep-dive
Walk me through your CI/CD pipeline stage by stage.BeginnerWhy did you choose GitHub Actions (or Jenkins, or GitLab CI) for this pipeline?IntermediateHow did your pipeline authenticate to AWS (or your cloud)?IntermediateHow did you tag and version container images?BeginnerHow did you promote a build from staging to production?IntermediateHow long did your pipeline take, and how did you make it faster?Intermediate