
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-codeInstalls 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- React Testing5.8K
- Pytorch Patterns5.8K
- Hexagonal Architecture5.8K
- Flutter Dart Code Review5.8K
- Frontend A11y5.8K
- Error Handling5.8K
- Ui Demo5.8K
- Agentic Engineering5.8K
- Vite Patterns5.8K
- Bun Runtime5.8K
- Agent Architecture Audit5.8K
- Nodejs Keccak2565.8K
- Security Scan5.8K
- Cpp Testing5.8K
- Django Tdd5.8K
- Dashboard Builder5.7K
- Redis Patterns5.7K
- Eval Harness5.7K
- Manim Video5.7K
- Content Engine5.7K
- Springboot Tdd5.7K
- Motion Patterns5.7K
- Configure Ecc5.7K
- Token Budget Advisor5.7K