Interview Prep/CI/CD/Pipeline Design and Architecture

What do you put in a pull request pipeline versus a main branch pipeline?

BeginnerProductionPipeline Design and Architecture
Answer

PR pipeline (fast, no production access): lint, unit tests, SAST, secret scan, dependency scan, build image (not pushed to prod registry, or pushed with a PR tag), Terraform plan, preview environment. Main pipeline (trusted): everything from PR, plus publishing the artifact, signing, SBOM, deploy to staging, integration/E2E tests, promotion to production. Secrets for deployment exist only in the main pipeline context.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Pipeline Design and Architecture