Gitlab CI Patterns

Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation.

firstsun-dev 4034682 4 files · 3.5 KB Updated

File contents

GitLab CI Patterns

Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment.

Pipeline Templates

Choose the appropriate reference based on your infrastructure:

  • Docker Patterns: Building and pushing container images.
    • Read references/DOCKER.md.
  • Terraform Patterns: Automated IaC workflows.
    • Read references/TERRAFORM.md.
  • Security & Optimization: SAST, Dependency scanning, and caching.
    • Read references/PIPELINE_OPTS.md.

Best Practices

  1. Specific Tags: Use node:20, not latest.
  2. Manual Gates: Implement when: manual for production applies.
  3. Artifacts: Use artifacts for build outputs and coverage reports.

firstsun-dev/skills/tree/main/custom/develop/gitlab-ci-patterns commit 40346821d0

Frequently asked questions

npx skillmds@latest add firstsun-dev/gitlab-ci-patterns