Runner


Overview

Runners are used to execute jobs in GitLab CI

Supported executors: shell, docker, docker-windows, docker-ssh, ssh, parallels, virtualbox, docker+machine, docker-ssh+machine, kubernetes

Shell

Jobs are executed in the context of the runner

Docker

Jobs are executed in a dedicated container

Kubernetes

Jobs are executed in a dedicated pod


Details

Runner can be shared across the instance of GitLab

They can be specific to a group of project

Jobs select runners by specifying a tag

Extensive configuration

Hands-On

Add runner to GitLab instance:

CI_SERVER_URL=http://gitlab.seatN.inmylab.de \
REGISTRATION_TOKEN=<TOKEN> \
RUNNER_EXECUTOR=docker \
docker compose --project-name gitlab \
    --file ../100_reverse_proxy/compose.traefik.yml \
    --file ../100_reverse_proxy/compose.gitlab.yml \
    --file compose.yml \
    up -d