Alison Aquinas logoAlison's LLM Plugins

gitlab-runner

Included in pluginci-cdView on GitHub ↗

Files

SKILL.mdagentsreferences

Install

Install the containing plugin
/plugin install ci-cd@llm-skills
Invoke this skill after installation
/ci-cd:gitlab-runner
Download gitlab-runner-skill.zip
This skill is bundled inside ci-cd. Install the plugin once, then Claude Code can use any of its included skills. Browse the full plugin repository at github.com/alisonaquinas/llm-ci-dev.

SKILL.md


name: gitlab-runner description: > Install, register, configure, and maintain the GitLab Runner daemon for self-hosted CI job execution. Cover installation across Linux, Docker, Kubernetes, macOS, and Windows; runner registration and config.toml anatomy; executor selection and configuration; health monitoring, logging, and troubleshooting.

GitLab Runner

Install, register, and operate the GitLab Runner daemon to execute CI jobs on self-hosted infrastructure. This skill covers installation across multiple platforms, runner registration, executor configuration, and operational management.


Intent Router

Load reference files for depth on specific topics:

TopicFileLoad when...
Installationreferences/installation.mdInstalling, upgrading, or uninstalling on any platform (Linux, Docker, Kubernetes, macOS, Windows)
Registration & Configurationreferences/registration-and-config.mdRegistering runners, editing config.toml, managing registration and auth tokens
Executorsreferences/executors.mdChoosing or configuring an executor (Shell, Docker, Kubernetes, etc.)
Operationsreferences/operations.mdHealth monitoring, log management, pausing runners, troubleshooting issues

Quick Start

Core Concepts

GitLab Runner is a daemon that accepts CI jobs from a GitLab instance and executes them on local infrastructure. The lifecycle: installregister (obtain credentials from GitLab) → run (pick up jobs from queue).

Minimal Installation & Registration

# Install gitlab-runner on Linux (deb/rpm repo)
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
sudo apt-get install gitlab-runner

# Register a runner (non-interactive)
sudo gitlab-runner register \
  --non-interactive \
  --url https://gitlab.example.com/ \
  --registration-token <TOKEN> \
  --executor docker \
  --docker-image ubuntu:22.04 \
  --description "Docker runner" \
  --tag-list docker,linux

# Start the service
sudo systemctl start gitlab-runner
sudo systemctl status gitlab-runner

config.toml Skeleton

Runners store configuration in /etc/gitlab-runner/config.toml:

concurrent = 4
check_interval = 0
log_level = "info"

[[runners]]
  name = "docker-runner-1"
  url = "https://gitlab.example.com/"
  token = "<RUNNER_TOKEN>"
  executor = "docker"
  [runners.docker]
    image = "ubuntu:22.04"
    volumes = ["/cache"]

See Registration & Configuration reference for full config.toml anatomy and all available keys.

Common Workflow Tasks

TaskCommand
List registered runnersgitlab-runner list
Verify runner connectivitysudo gitlab-runner verify
View logssudo systemctl status gitlab-runner or journalctl -u gitlab-runner
Pause a runnerUse GitLab UI (Runner Settings → Pause)
Upgrade runnersudo apt-get upgrade gitlab-runner
Uninstall runnersudo apt-get remove gitlab-runner

Cross-References

Use alongside these skills for deeper context:

  • gitlab-ci — Write and maintain .gitlab-ci.yml pipelines that trigger runner jobs
  • gitlab-docs — Deep syntax reference for GitLab CI keywords and API
  • ci-architecture — Design patterns for multi-runner deployments and executor selection

Related References

  • Load Installation for platform-specific setup (Linux, Docker, Kubernetes, macOS, Windows)
  • Load Registration & Configuration to understand runner registration tokens and config.toml
  • Load Executors when choosing between Shell, Docker, Kubernetes, or SSH executors
  • Load Operations for monitoring, logging, and troubleshooting runner health
← Back to marketplace