gitlab-cicd-pipeline

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill gitlab-cicd-pipeline
0 commentsdiscussion
summary

Create comprehensive GitLab CI/CD pipelines that automate building, testing, and deployment using GitLab Runner infrastructure and container execution.

skill.md

GitLab CI/CD Pipeline

Table of Contents

Overview

Create comprehensive GitLab CI/CD pipelines that automate building, testing, and deployment using GitLab Runner infrastructure and container execution.

When to Use

  • GitLab repository CI/CD setup
  • Multi-stage build pipelines
  • Docker registry integration
  • Kubernetes deployment
  • Review app deployment
  • Cache optimization
  • Dependency management

Quick Start

Minimal working example:

# .gitlab-ci.yml
image: node:18-alpine

variables:
  DOCKER_DRIVER: overlay2
  FF_USE_FASTZIP: "true"

stages:
  - lint
  - test
  - build
  - security
  - deploy-review
  - deploy-prod

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - node_modules/
    - .npm/

lint:
  stage: lint
  script:
    - npm install
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
Complete Pipeline Configuration Complete Pipeline Configuration
GitLab Runner Configuration GitLab Runner Configuration
Docker Layer Caching Optimization Docker Layer Caching Optimization
Multi-Project Pipeline Multi-Project Pipeline
Kubernetes Deployment Kubernetes Deployment, Performance Testing Stage, Release Pipeline with Semantic Versioning

Best Practices

✅ DO

  • Use stages to organize pipeline flow
  • Implement caching for dependencies
  • Use artifacts for test reports
  • Set appropriate cache keys
  • Implement conditional execution with only and except
  • Use needs: for job dependencies
  • Clean up artifacts with expire_in
  • Use Docker for consistent environments
  • Implement security scanning stages
  • Set resource limits for jobs
  • Use merge request pipelines

❌ DON'T

  • Run tests serially when parallelizable
  • Cache everything unnecessarily
  • Leave large artifacts indefinitely
  • Store secrets in configuration files
  • Run privileged Docker without necessity
  • Skip security scanning
  • Ignore pipeline failures
  • Use only: [main] without proper controls

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.552 reviews
  • Amina Diallo· Dec 12, 2024

    gitlab-cicd-pipeline reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • James Menon· Dec 4, 2024

    Useful defaults in gitlab-cicd-pipeline — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Isabella Huang· Nov 23, 2024

    Registry listing for gitlab-cicd-pipeline matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Benjamin Diallo· Nov 19, 2024

    Useful defaults in gitlab-cicd-pipeline — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Chaitanya Patil· Nov 11, 2024

    gitlab-cicd-pipeline has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • James Mehta· Nov 3, 2024

    I recommend gitlab-cicd-pipeline for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Anika Lopez· Oct 22, 2024

    Useful defaults in gitlab-cicd-pipeline — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Lucas Zhang· Oct 14, 2024

    gitlab-cicd-pipeline reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Michael Smith· Oct 10, 2024

    I recommend gitlab-cicd-pipeline for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Piyush G· Oct 2, 2024

    Solid pick for teams standardizing on skills: gitlab-cicd-pipeline is focused, and the summary matches what you get after install.

showing 1-10 of 52

1 / 6