gitlab-ci-patterns
Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation. Use when implementing GitLab CI/CD, optimizing pipeline performance, or setting up automated testing and deployment.
By wshobson · 11,653 installs
npx skills add wshobson/agents --skill gitlab-ci-patterns
Source repository · Upstream listing
GitLab CI Patterns
Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment.
Purpose
Create efficient GitLab CI pipelines with proper stage organization, caching, and deployment strategies.
When to Use
Automate GitLab based CI/CD
Implement multi stage pipelines
Configure GitLab Runners
Deploy to Kubernetes from GitLab
Implement GitOps workflows
Basic Pipeline Structure
Docker Build and Push
Multi Environment Deployment
Terraform Pipeline
Security Scanning
Caching Strategies
Dynamic Child Pipelines
Best Practices
1. Use specific image tags (node:20, not node:latest)
2. Cache dependencies appropriately
3. Use artifacts for build outputs
4. Implement manual gates for production
5. Use environments for deployment tracking
6. Enable merge request pipelines
7. Use pipeline schedules for recurring jobs
8. Implement security scanning
9. Use CI/CD variables for secrets
10. Monitor pipeline performance
Related Skills
github actions templates For GitHub Actions
deployment pipeline design For architecture
secrets management For secrets handling