Skip to main content
Alison Aquinas logoAlison's LLM Skills Marketplace

gitlab-cd

Included in skill bundleci-cdView on GitHub ↗

Files

SKILL.mdagentsreferences

Install

Install only this skill with npx skills
npx skills add alisonaquinas/llm-ci-dev --skill 'gitlab-cd' -g -y
Install the containing skill bundle
/plugin install ci-cd@llm-skills
Download gitlab-cd-skill.zip
This skill is bundled inside ci-cd. Use npx skills when you only want this skill, or install the bundle once to make every included skill available through the plugin marketplace flow. Browse the full skill bundle repository at github.com/alisonaquinas/llm-ci-dev.

Invoke

Invoke this skill after installation
/ci-cd:gitlab-cd

SKILL.md


name: gitlab-cd description: > Deploy with GitLab CD environments and pipelines. Manage deployments, environments, and releases using GitLab's native CD capabilities.

GitLab CD

Deploy applications using GitLab CD environments, pipelines, and release management. This skill covers deployment lifecycle management, environment protection, review apps, and integration with deployment targets like Kubernetes, cloud platforms, and container registries.


Intent Router

Load reference files for depth on specific topics:

TopicFileLoad when...
Environments & Deploymentsreferences/environments-and-deployments.mdSetting up deployment environments, tiers, protected environments, and tracking
Deployment Targetsreferences/deployment-targets.mdIntegrating with Kubernetes, cloud providers, registries, or custom targets
Review Appsreferences/review-apps.mdCreating dynamic review environments for merge requests
Release & Versioningreferences/release-and-versioning.mdManaging releases, semantic versioning, and artifact distribution

Quick Start

Deployment Job Pattern

A basic deployment job in .gitlab-ci.yml:

deploy_production:
  stage: deploy
  image: alpine:latest
  script:
    - echo "Deploying to production..."
  environment:
    name: production
    url: https://app.example.com
    deployment_tier: production
    auto_stop_in: never
  only:
    - main

Manual vs Automatic Deployments

  • Automatic — Runs immediately when pipeline conditions are met
  • Manual — Requires when: manual and explicit trigger from pipeline UI or API
deploy_staging:
  environment:
    name: staging
  when: manual  # Requires manual trigger

Protected Environments

Restrict deployments to specific users, groups, or approval requirements:

deploy_production:
  environment:
    name: production
  only:
    - main

Enable production environment protection in GitLab UI under Deployments > Environments to require approvals.

Environment URLs

Set deployment URLs for easy access from the GitLab interface:

environment:
  name: production
  url: https://app.example.com
  auto_stop_in: 1 week  # Auto-stop review app after 1 week

Related References

  • Load Environments & Deployments to configure deployment tiers, protection, and history
  • Load Deployment Targets for Kubernetes, AWS, GCP, Heroku, or registry integration
  • Load Review Apps for per-branch dynamic environments
  • Load Release & Versioning for release management and semantic versioning
← Back to marketplace