SuperAPI AI Directory

gitlab-ci

Deployment & operations

View repository

Updated 10-15 21:48

About this skill

When to use this skill

Use this skill whenever the user wants to:

  • Writing or debugging GitLab CI pipelines (.gitlab-ci.yml)
  • Configuring GitLab Runner, stages, jobs, artifacts
  • Setting up GitLab CI/CD variables, secrets, environments
  • Integrating test, build, and deployment automation

How to use this skill

  1. Pipeline structure: Define in YAML stages、jobs; each job belongs to a stage.
  2. Runner configuration: shared runner, specific runner, tags selection.
  3. Artifacts and caching: Pass build artifacts between jobs, use cache for acceleration.
  4. Environments and deployment: Use environment to define deployment targets, configure only/except rules.

Best Practices

  • Use stages to clarify build order; jobs run in parallel.
  • Use CI/CD variables for sensitive information (Settings → CI/CD → Variables); do not hardcode them in yaml.
  • Use needs to implement complex dependency graphs and avoid unnecessary waiting.
  • Add artifacts to failed jobs to retain logs and artifacts.

Keywords

gitlab ci, gitlab-ci, pipeline, runner, ci/cd, 流水线, 自动化部署, gitlab runner