GitLab CI/CD Pipeline

GitLab CI/CD Pipeline

Guides an AI agent to design GitLab CI/CD pipelines with stages, jobs, artifacts, caching, runners, Docker builds and Kubernetes deployments.

Skill files8 files

references/

scripts/

templates/

SKILL.md103 lines
1
---
2
name: gitlab-cicd-pipeline
3
description: >
4
Design and implement GitLab CI/CD pipelines with stages, jobs, artifacts, and
5
caching. Configure runners, Docker integration, and deployment strategies.
6
---
7
8
# GitLab CI/CD Pipeline
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Create comprehensive GitLab CI/CD pipelines that automate building, testing, and deployment using GitLab Runner infrastructure and container execution.
21
22
## When to Use
23
24
- GitLab repository CI/CD setup
25
- Multi-stage build pipelines
26
- Docker registry integration
27
- Kubernetes deployment
28
- Review app deployment
29
- Cache optimization
30
- Dependency management
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# .gitlab-ci.yml
38
image: node:18-alpine
39
40
variables:
41
DOCKER_DRIVER: overlay2
42
FF_USE_FASTZIP: "true"
43
44
stages:
45
- lint
46
- test
47
- build
48
- security
49
- deploy-review
50
- deploy-prod
51
52
cache:
53
key: ${CI_COMMIT_REF_SLUG}
54
paths:
55
- node_modules/
56
- .npm/
57
58
lint:
59
stage: lint
60
script:
61
- npm install
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Complete Pipeline Configuration](references/complete-pipeline-configuration.md) | Complete Pipeline Configuration |
72
| [GitLab Runner Configuration](references/gitlab-runner-configuration.md) | GitLab Runner Configuration |
73
| [Docker Layer Caching Optimization](references/docker-layer-caching-optimization.md) | Docker Layer Caching Optimization |
74
| [Multi-Project Pipeline](references/multi-project-pipeline.md) | Multi-Project Pipeline |
75
| [Kubernetes Deployment](references/kubernetes-deployment.md) | Kubernetes Deployment, Performance Testing Stage, Release Pipeline with Semantic Versioning |
76
77
## Best Practices
78
79
### ✅ DO
80
81
- Use stages to organize pipeline flow
82
- Implement caching for dependencies
83
- Use artifacts for test reports
84
- Set appropriate cache keys
85
- Implement conditional execution with `only` and `except`
86
- Use `needs:` for job dependencies
87
- Clean up artifacts with `expire_in`
88
- Use Docker for consistent environments
89
- Implement security scanning stages
90
- Set resource limits for jobs
91
- Use merge request pipelines
92
93
### ❌ DON'T
94
95
- Run tests serially when parallelizable
96
- Cache everything unnecessarily
97
- Leave large artifacts indefinitely
98
- Store secrets in configuration files
99
- Run privileged Docker without necessity
100
- Skip security scanning
101
- Ignore pipeline failures
102
- Use `only: [main]` without proper controls
103

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…