Fungipedia

Quick technical cheatsheets, each one a short animation you can step through.

Browse cheatsheets ↓

Cheatsheets

More cheatsheets are growing. Want the full story behind them?

devops · ci-cd

CI/CD pipeline, push to production

How a commit travels through build, test, scan and deploy with GitHub Actions, Docker and Kubernetes.

  1. Build compile, image
  2. Test unit, integration
  3. Scan deps, image, secrets
  4. Deploy roll out safely

Every push starts the same four-stage road. A failure at any stage stops the line.

Cheatsheet

The pipeline

Stage Question it answers Typical tools
Build Does it compile and package? docker build, npm run build
Test Does it behave correctly? unit and integration tests
Scan Is it safe to ship? dependency, image and secret scanners
Deploy Can users get it without downtime? kubectl, Helm, Argo CD

Rollout strategies

  • Rolling update: replace pods gradually. The Kubernetes default.
  • Blue-green: run old and new side by side, switch traffic at once.
  • Canary: send a small share of traffic to the new version first.

Commands you will use

bash
kubectl rollout status deployment/my-service
kubectl rollout undo deployment/my-service
kubectl set image deployment/my-service app=registry/app:1.4.2

Safety habits

  • Keep secrets in the CI secret store.
  • Pin versions of actions and base images.
  • Build once, promote the same image everywhere.
  • Add readiness probes and know your rollback command.