deployment-patterns

Implements CI/CD pipelines, Docker builds, health checks, and rollback strategies for production deployments.

2|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/adamreger/ecc-antigravity --skill deployment-patterns-adamreger
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: deployment-patterns
Source: https://github.com/adamreger/ecc-antigravity/tree/main/skills/deployment-patterns
Command: npx skills add https://github.com/adamreger/ecc-antigravity --skill deployment-patterns-adamreger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Shipping web applications to production involves many error-prone decisions: choosing a deployment strategy, writing efficient Dockerfiles, wiring CI/CD pipelines, and verifying readiness. This Skill provides proven patterns and checklists so deployments are consistent, safe, and reversible. ## Core Features & Use Cases - Deployment Strategies: Guidance on rolling, blue-green, and canary deployments with trade-offs for each approach. - Docker & CI/CD Templates: Multi-stage Dockerfiles for Node.js, Go, and Python plus a GitHub Actions pipeline covering test, build, and deploy stages. - Production Readiness: Health check endpoints, Kubernetes probes, environment validation with zod, rollback procedures, and a full pre-release checklist. - Use Case: When containerizing a Node.js API and setting up its first production pipeline, use this Skill to generate a multi-stage Dockerfile, a GitHub Actions workflow, and a readiness checklist in one pass. ## Quick Start Use the deployment-patterns skill to create a production Dockerfile and GitHub Actions CI/CD pipeline for my Node.js application.

Frequently Asked Questions about deployment-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a multi-stage Dockerfile for a Node.js app?▼

Use separate stages for dependency installation, building, and the production runtime. Copy only production node_modules and build output into the final stage, run as a non-root user, pin a specific base image tag like node:22-alpine, and add a HEALTHCHECK instruction.

What is the difference between blue-green and canary deployment?▼

Blue-green runs two identical environments and switches all traffic atomically, giving instant rollback at the cost of double infrastructure. Canary routes a small traffic percentage to the new version first, catching issues with real traffic but requiring traffic-splitting and monitoring infrastructure.

How do I set up a GitHub Actions CI/CD pipeline for Docker?▼

Structure the pipeline as test, build, and deploy jobs. The test job runs lint, typecheck, and tests; the build job uses docker/build-push-action to push a tagged image to a registry like ghcr.io; the deploy job runs only on the main branch with a production environment gate.

Does Kubernetes need both liveness and readiness probes?▼

Yes, they serve different purposes. Liveness probes restart unhealthy containers, while readiness probes control whether a pod receives traffic. A startup probe should also be added for slow-starting applications to prevent premature liveness failures.

How do I roll back a failed production deployment?▼

For Kubernetes, run kubectl rollout undo on the deployment to return to the previous image. Platforms like Vercel and Railway support promoting a previous deployment or commit. Ensure database migrations are backward-compatible so rollbacks do not break the older version.

Why should environment variables be validated at application startup?▼

Validating configuration at startup with a schema library like zod makes the application fail fast with a clear error instead of crashing later in production. It enforces required values such as DATABASE_URL and JWT_SECRET before the server accepts traffic.