deployment-pipeline-design

Design multi-stage CI/CD pipelines with approval gates, canary rollouts, and automated rollback.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill deployment-pipeline-design-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deployment-pipeline-design
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/deployment-pipeline-design
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill deployment-pipeline-design-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Designing safe production deployment pipelines requires coordinating build stages, security scans, approval gates, rollout strategies, and rollback logic across multiple environments, and mistakes lead to downtime or failed releases. ## Core Features & Use Cases - Pipeline Architecture: Stage-by-stage designs for GitHub Actions, GitLab CI, and Azure Pipelines with job dependencies, caching, and artifact promotion. - Deployment Strategies: Annotated configurations for rolling, blue-green, canary (Argo Rollouts), and feature-flag rollouts with a decision table for choosing between them. - Gates and Rollback: Manual approval patterns, automated metric-based gates using Prometheus AnalysisTemplates, deep health checks, and automated rollback triggers. - Use Case: When migrating a service to Kubernetes, use this Skill to produce a complete pipeline that builds and scans a container image, deploys to staging, runs E2E tests, waits for production approval, and promotes a canary only while error rates stay below threshold. ## Quick Start Ask the assistant to design a zero-downtime CI/CD pipeline with a canary rollout and automated rollback for your application and deployment target.

Frequently Asked Questions about deployment-pipeline-design

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

FAQPage Schema
How do I design a CI/CD pipeline with approval gates before production?

Define sequential stages for build, test, staging deploy, and production, then gate production behind an environment protection rule. In GitHub Actions, set required reviewers under Settings, Environments, production; in GitLab use a manual job; in Azure Pipelines use ManualValidation.

Canary vs blue-green deployment: which strategy should I choose?

Canary suits high-traffic services needing metric-driven gradual rollout with automated analysis, while blue-green fits high-risk releases or database migrations needing instant switchover. Blue-green temporarily doubles infrastructure cost; canary requires Argo Rollouts or a service mesh.

How do I set up automated rollback in a Kubernetes deployment pipeline?

Run a post-deployment health check script against a deep readiness endpoint, then trigger kubectl rollout undo on failure. Argo Rollouts can abort and roll back automatically when an AnalysisTemplate metric like error rate breaches its failure condition.

Why does my pipeline health check pass but production is unhealthy?

The pipeline is likely hitting a shallow ping endpoint that returns 200 even when dependencies are down. Use a deep readiness endpoint that verifies database, cache, and queue connections and returns 503 when any check fails.

Why does my Argo Rollouts canary never promote to 100 percent?

The AnalysisTemplate metric query may return no data, leaving the analysis inconclusive and stalling promotion. Set inconclusiveLimit so the rollout fails fast instead of hanging, and verify the Prometheus metric names still exist.

How do I roll back database migrations safely during a deployment rollback?

Keep migrations backward-compatible using the expand/contract pattern so old code works with the new schema for at least one release cycle. Version undo scripts alongside forward migrations and avoid destructive changes until the old code is fully retired.