gitlab-ci-patterns

仓库创建 2025年7月25日最近提交 5 天前SkillHot 收录 21 天前
▸ 精选理由

聚焦 GitLab 环境下的可扩展流水线实践,便于工程化落地。

▸ 风险提示

实际使用需配置 Runner 与凭据,涉及基础设施访问权限。

这个 Skill 做什么

提供 GitLab CI 多阶段流水线模式与性能优化方案。

提供一套 GitLab CI/CD 的流水线设计和性能优化方案,包括多阶段构建、缓存策略和分布式 runner 的使用建议。需要把测试、构建、部署自动化或将流水线部署到 Kubernetes 时会用到。特点是注重阶段组织、缓存复用和可扩展性,能显著缩短 CI 周期并降低资源消耗。

▸ 展开 SKILL.md 英文原文

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.

开发编程GitLab CI流水线Runner缓存通用
3.8w
Stars
4.1k
Forks
40
仓库内 Skill
+713
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/wshobson/agents/main/plugins/cicd-automation/skills/gitlab-ci-patterns/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/wshobson/agents/main/plugins/cicd-automation/skills/gitlab-ci-patterns/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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

```yaml
stages:
  - build
  - test
  - deploy

variables:
  DOCKER_DRIVER: overlay2
  DOCKER_TLS_CERTDIR: "/certs"

build:
  stage: build
  image: node:20
  script:
    - npm ci
    - npm run build
  artifacts:
    paths:
      - dist/
    expire_in: 1 hour
  cach
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有