Skip to main content

CI/CD Implementation

Folder: .github/skills/tsh-implementing-ci-cd/ Used by: DevOps Engineer

Provides CI/CD pipeline design patterns and deployment strategies for GitHub Actions, GitLab CI, Bitbucket Pipelines, and other platforms.

Pipeline Design Principles

  • Fail fast — Run linting and unit tests before expensive operations.
  • Cache aggressively — Cache dependencies, Docker layers, and build artifacts.
  • Parallelize — Run independent jobs concurrently to reduce total build time.
  • Environment protection — Require approvals for production deployments.

Deployment Strategies

StrategyWhen to Use
Blue/GreenZero-downtime deployments with instant rollback capability
CanaryGradual rollout to a subset of users for risk mitigation
RollingSequential updates across instances with health checks
Feature flagsDecouple deployment from release for safe feature rollouts

Security

  • Secrets referenced via environment variables, never hardcoded.
  • Minimal permissions for deployment service accounts.
  • Dependency scanning and vulnerability checks in pipeline.

Connected Skills

  • tsh-managing-secrets — Secure credential storage and rotation for CI/CD.
  • tsh-technical-context-discovering — Discover existing pipeline patterns.