dev-tools

Continuous Integration / Continuous Deployment (CI/CD)

CI/CD stands for Continuous Integration and Continuous Deployment (sometimes Continuous Delivery, a slightly more conservative variant). Continuous Integration means every code change pushed to a shared repository automatically triggers a pipeline that builds the project and runs its automated tests, so integration problems are caught within minutes rather than discovered days later when several people's changes collide. Continuous Deployment extends this so that a change passing all checks is automatically released to production with no manual step; Continuous Delivery is the same idea but with a manual "click to release" gate at the end. Why it matters for AI/SaaS builders: CI/CD is the backbone that makes fast, safe iteration possible — without it, teams either ship rarely (batching risk into big, scary releases) or ship carelessly (breaking production regularly). For a SaaS product with paying customers, a reliable pipeline is what lets you deploy multiple times a day with confidence instead of dreading Friday deploys. It's also the layer where AI-generated code gets its safety net: an AI agent can propose a change, but CI is what objectively proves the change didn't break anything before it reaches users. How it works: a CI/CD pipeline is defined as configuration (a YAML file in GitHub Actions, GitLab CI, or CircleCI, for example) describing stages — install dependencies, lint, run unit tests, run integration tests, build a container image, deploy to staging, run smoke tests, deploy to production. Each stage must pass for the pipeline to proceed to the next; a failure blocks the merge or the deploy and notifies the team. Modern pipelines also gate on code review approval and automated checks like test coverage thresholds or security scans. Worked example: a developer opens a pull request adding a new `/api/invoices/export` endpoint. Pushing the branch triggers a GitHub Actions workflow: Stage 1 installs npm dependencies and runs ESLint (passes in 20s); Stage 2 runs the Jest unit test suite, which includes a new test asserting the CSV export has the right headers (passes); Stage 3 builds a Docker image and runs it against a Postgres test container for an integration test that actually hits the new endpoint (passes); Stage 4 posts a green checkmark on the PR. A teammate approves the review, the PR merges to `main`, which triggers a second workflow that builds the production image, pushes it to the container registry, and deploys it to the Kubernetes cluster via a rolling update — all without anyone SSHing into a server.

Related terms

More Dev Tools terms