Interview Prep/CI/CD/Pipeline Design and Architecture

How do you structure repositories: app repo, config repo, pipeline library?

IntermediateProductionPipeline Design and Architecture
Answer

We separate concerns:

  • App repo: code, Dockerfile, a thin pipeline that calls shared logic.
  • Deployment/config repo (GitOps): Helm values or Kustomize overlays per environment; separate permissions and review rules, so a code push cannot change production config.
  • Platform repo: reusable workflows, Jenkins shared libraries, GitLab components, pinned and versioned.

The thin-pipeline-plus-shared-logic approach means a security fix to the build template rolls out to 200 services by bumping a version.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Pipeline Design and Architecture