affaan-m avatar

Deployment Patterns

This one walks you through the three main deployment strategies (rolling, blue-green, canary) with actual diagrams showing how traffic shifts, then gives you production-ready Dockerfiles for Node, Go, and Python with multi-stage builds and non-root users. The CI/CD section is a complete GitHub Actions pipeline that runs tests, builds images, and deploys only on main. The health check examples go beyond a simple 200 response and show you how to check database and Redis connections, plus the Kubernetes probe configuration you'll actually need. It's opinionated in the right ways, like telling you not to use latest tags and to copy dependency files before application code for layer caching. Good reference when you're moving past "it works on my machine" and need deployment patterns that won't wake you up at 3am.

skills.sh installs
5.8K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill deployment-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Deployment Patterns

Production deployment workflows and CI/CD best practices.

When to Activate

  • Setting up CI/CD pipelines
  • Dockerizing an application
  • Planning deployment strategy (blue-green, canary, rolling)
  • Implementing health checks and readiness probes
  • Preparing for a production release
  • Configuring environment-specific settings

Deployment Strategies

Rolling Deployment (Default)

Replace instances gradually — old and new versions run simultaneously during rollout.

Instance 1: v1 → v2  (update first)
Instance 2: v1        (still running v1)
Instance 3: v1        (still running v1)

Instance 1: v2
Instance 2: v1 → v2  (update second)
Instance 3: v1

Instance 1: v2
Instance 2: v2
Instance 3: v1 → v2  (update last)

Pros: Zero downtime, gradual rollout Cons: Two versions run simultaneously — requires backward-compatible changes Use when: Standard deployments, backward-compatible changes

Blue-Green Deployment

Run two identical environments. Switch traffic atomically.

Blue  (v1) ← traffic
Green (v2)   idle, running new version

# After verification:
Blue  (v1)   idle (becomes standby)
Green (v2) ← traffic

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
DevOps & CI/CD, Automation & Workflows, Sales & Marketing
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1coralogix avatarcx-telemetry-queryingcoralogix/cx-cliUse this skill for any question involving telemetry data: "investigate an issue", "debug a problem", "find out why something is slow", "check error rates", "ana5.8Kskills.sh installs
2affaan-m avatardashboard-builderaffaan-m/eccBuild monitoring dashboards that answer real operator questions for Grafana, SigNoz, and similar platforms. Use when turning metrics into a working dashboard in5.7Kskills.sh installs
3wondelai avatarpredictable-revenuewondelai/skillsBuild a scalable outbound B2B sales machine with specialized roles (SDR, AE, CSM). Use when the user mentions "outbound sales", "Cold Calling 2.0", "cold email 5.6Kskills.sh installs
4affaan-m avatargithub-opsaffaan-m/eccGitHub repository operations, automation, and management. Issue triage, PR management, CI/CD operations, release management, and security monitoring using the g5.6Kskills.sh installs
5wondelai avatarrelease-itwondelai/skillsBuild production-ready systems with stability patterns: circuit breakers, bulkheads, timeouts, and retry logic. Use when the user mentions "production outage", 5.6Kskills.sh installs
6affaan-m avatardata-scraper-agentaffaan-m/eccBuild a fully automated AI-powered data collection agent for any public source — job boards, prices, news, GitHub, sports, anything. Runs on a schedule, enriche5.6Kskills.sh installs