CI/CD
The backbone of modern software: every commit becomes a build, a test run and a deploy with no manual intervention.
What it is
(CI) is the practice of automatically validating every code change: on each push or pull request, the pipeline compiles the project and runs the tests. The goal is to find out in minutes, not weeks, that a change broke something.
Continuous Delivery/Deployment (CD) extends the pipeline all the way: the validated artifact is packaged and published. In continuous delivery, deploying to production still requires a human click; in , everything that passes the gates goes live on its own.
Anatomy of a pipeline
Names vary between tools, but almost every pipeline follows the same backbone:
- source: a push or PR triggers the pipeline from the repository
- build: compiles, installs dependencies and resolves what the code needs
- test: unit tests, integration tests and security checks
- package: produces the final artifact: binary, package or
- deploy: publishes to staging and, afterwards, to production
- monitor: observability, alerts and a rollback path
The pipeline as code
Abstraction turns into clarity when you see the pipeline written out: the workflow below is a real GitHub Actions pipeline, with the trigger (source), build, tests and a security check running as just another step.
name: ci
on: [push, pull_request] # source stage: what triggers it
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci # build: reproducible install
- run: npm test # test: the test suite
- run: npx semgrep ci # security enters as just another step
- run: docker build -t app . # package: produces the artifactWhy it is the center of security
Each stage is a gate where a security check can come in: and at build, in staging, at source. This is what exploits.
The reverse also holds: whoever controls the pipeline controls what goes to production. The SolarWinds attack (2020) compromised exactly the build system: the pipeline became the malware's distribution vector. The pipeline is critical infrastructure.
connections on the map
- Secrets Scanningstage: sourceCI/CD
- SASTstage: build/PRCI/CD
- SCAstage: buildCI/CD
- DASTstage: stagingCI/CD
- DevSecOpsgates & policiesCI/CD
updated on 14/10/2026 · sources to go deeper · report an error
in other domains
- CI pipelines that stay fastdevopswhere each security check fits in the pipeline
- CI/CD hardeningsecengthe pipeline seen as a target: the same pipeline, now hardened
Unlocks
test what you learned
Loading questions…