CI/CD Patterns

Provide CI/CD patterns for GitHub Actions, Docker, Kubernetes, and ArgoCD.

Updated Dec 2, 2025
One-click install
npx skills add https://github.com/m16khb/claude-integration --skill ci-cd-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CI/CD Patterns
Source: https://github.com/m16khb/claude-integration/tree/main/plugins/full-stack-orchestration/skills/ci-cd-patterns
Command: npx skills add https://github.com/m16khb/claude-integration --skill ci-cd-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides patterns for building reliable CI/CD pipelines, including GitHub Actions workflows, Dockerization, deployment strategies, and Kubernetes/GitOps practices.

Core Features & Use Cases

  • GitHub Actions patterns: Basic CI, Docker builds, and coverage reporting.
  • Dockerfile patterns: Multi-stage builds and optimization.
  • Deployment strategies: Blue-Green, Canary, Rolling Update, and ArgoCD/GitOps.
  • Usage Scenario: Design a robust NestJS deployment with database migrations and health checks.

Quick Start

Implement a basic CI workflow for a NestJS project with tests, lint, and coverage reporting.

Frequently Asked Questions about CI/CD Patterns

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

FAQPage Schema
How do I set up a CI/CD pipeline with GitHub Actions?

GitHub Actions CI/CD pipelines automate testing, building, and deployment workflows. Define YAML workflow templates in your repository's .github/workflows directory to trigger on events like push or pull request, then configure jobs for linting, testing, coverage reporting, and Docker image builds.

What are the best deployment strategies for Kubernetes and Docker?

Deployment strategies—Blue-Green, Canary, and Rolling Update—control how new versions reach production with minimal downtime. Blue-Green runs two identical environments and switches traffic instantly; Canary gradually routes traffic to new versions; Rolling Update replaces pods incrementally while maintaining service availability.

How do I create optimized Docker images for CI/CD pipelines?

Multi-stage Dockerfiles reduce image size and build time by separating build dependencies from runtime artifacts. Each stage uses FROM to define a base, copies only necessary outputs to the final stage, and minimizes layers, resulting in faster deployment and lower storage costs.

Can I use GitOps with ArgoCD for automated deployments?

GitOps with ArgoCD enables declarative deployment management by syncing Kubernetes specs from Git repositories automatically. ArgoCD monitors your Git source, detects configuration changes, and applies them to your cluster, providing version control, audit trails, and rollback capabilities.

What should I include in a production deployment to ensure reliability?

Production deployments require health checks to verify service readiness, secret management for credentials and API keys, database migration handling before pod updates, and multi-stage workflows that test, build, and deploy sequentially with validation gates between stages.

Does GitHub Actions work with Kubernetes and Docker registries?

Yes. GitHub Actions integrates with Docker registries to build and push images, and with Kubernetes clusters to deploy applications. Use action steps to authenticate, build images with docker build, push to registries, and deploy manifests using kubectl or GitOps tools like ArgoCD.