Skip to main content

CI/CD

CI/CD automates testing, building, and deploying software.

What Is CI/CD

Continuous integration runs checks whenever code changes. Continuous delivery or deployment prepares and ships the application after checks pass.

How To Use CI/CD

Create a workflow file in a CI platform, define triggers, then run commands such as install, test, build, and deploy.

Basic Example

name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm run build

Common Concepts

  • Pipelines define automated steps.
  • Jobs run on worker machines.
  • Artifacts store build output.
  • Secrets store sensitive deployment values.

What To Learn Next

Learn test automation, deployment environments, caching, secrets, rollback strategies, and release gates.