# Continuous Integration and Delivery

> What CI, continuous delivery and continuous deployment mean, and the stages a healthy pipeline runs through. Free notes, key concepts, resources and a mini...

Canonical: https://www.internhack.in/roadmaps/tracks/devops/ci-cd-concepts
Last updated: 2026-11-28

What CI, continuous delivery and continuous deployment mean, and the stages a healthy pipeline runs through.

Beginner · about 3 hours · difficulty 2/5

Learn first: [Branching Strategies and Pull Requests](https://www.internhack.in/roadmaps/tracks/devops/branching-workflows), [Building Good Images](https://www.internhack.in/roadmaps/tracks/devops/dockerfiles-images)

A pipeline turns every commit into evidence: does it build, do the tests pass, is it safe to ship? The faster and more reliable that evidence, the more often a team can release.

### Three related terms

- **Continuous integration (CI)**: everyone merges small changes to the main branch often, and every push is built and tested automatically.
- **Continuous delivery**: every change that passes the pipeline is releasable; a human presses the button.
- **Continuous deployment**: passing changes go to production automatically, with no button.

### Typical stages

1. **Checkout and dependency restore**, with caching.
2. **Lint and static checks** (formatters, type checks, IaC validation).
3. **Unit tests**, then **build** an artifact or container image once.
4. **Security scans**: dependencies, secrets, image vulnerabilities.
5. **Publish** the artifact with an immutable version (commit SHA or semantic version).
6. **Deploy to staging**, run integration or smoke tests.
7. **Promote the same artifact** to production, never rebuild it.

### What makes a pipeline good

- Fast feedback: aim for minutes on pull requests; parallelise and cache.
- Deterministic builds: pinned dependencies and tool versions.
- **Build once, deploy many**: identical bits in every environment, config injected at deploy time.
- Pipeline definitions live in the repository and are reviewed like code.
- Flaky tests are fixed or quarantined, never ignored.

**Good enough to move on:** you can draw the stages of a pipeline for a containerised service, explain delivery vs deployment, and say why production should get the exact artifact staging tested.

## Key concepts

- **CI vs continuous delivery vs deployment**
- **Pipeline stages**
- **Build once, deploy many**
- **Caching and parallelism**
- **Artifact versioning**
- **Environment promotion**
- **Flaky test handling**

## Mini project

Draw the complete pipeline for one of your projects from push to production, marking which stages run on pull requests, which on main, and where the artifact is built and promoted.

## Check yourself

Why is rebuilding the container image separately for production a bad idea, even from the same commit?

## Free resources

- [Continuous integration](https://martinfowler.com/articles/continuousIntegration.html) (Martin Fowler)
- [DORA capabilities: continuous delivery](https://dora.dev/capabilities/continuous-delivery/) (DORA)

Previous: [Chef, Puppet and Salt](https://www.internhack.in/roadmaps/tracks/devops/chef-puppet) · Next: [GitHub Actions](https://www.internhack.in/roadmaps/tracks/devops/github-actions)

## More in CI/CD Pipelines and Release Strategies

- [Continuous Integration and Delivery](https://www.internhack.in/roadmaps/tracks/devops/ci-cd-concepts)
- [GitHub Actions](https://www.internhack.in/roadmaps/tracks/devops/github-actions)
- [GitLab CI/CD](https://www.internhack.in/roadmaps/tracks/devops/gitlab-ci)
- [Jenkins](https://www.internhack.in/roadmaps/tracks/devops/jenkins)
- [Artifact and Package Management](https://www.internhack.in/roadmaps/tracks/devops/artifact-management)
- [Deployment Strategies and Feature Flags](https://www.internhack.in/roadmaps/tracks/devops/deployment-strategies)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [DevOps Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/devops)
