CI/CD Basics
On this page
What CI/CD Provides
Continuous Integration (CI) runs tests and checks on every commit. Continuous Deployment (CD) automatically deploys verified builds to staging or production.
Typical Pipeline
- Install dependencies
- Type check and lint
- Run unit and integration tests
- Build production artifact
- Deploy to environment
Immutable Builds
Build artifacts should be immutable and versioned. Deploy the same artifact you tested.
Rollback Strategy
Every deployment must have a rollback plan. Fast rollback reduces downtime during incidents.
Production Rule
Manual production deploys increase risk. Automate everything that can be automated.