What is a GitLab Runner and what executors exist?
IntermediateConceptGitLab CI
Answer
GitLab Runner is the agent (written in Go) that polls GitLab for jobs and runs them. The executor decides how: shell (directly on the host), docker (a container per job from image:), kubernetes (a pod per job), docker-autoscaler/instance (cloud autoscaling), and ssh/virtualbox/parallels. Docker and Kubernetes are the common choices because they give clean per-job environments.
gitlab-runner register --url https://gitlab.example.com \
--token glrt-xxxx --executor docker --docker-image alpine:3.20
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?IntermediateWhat does `needs:` do and how does it create a DAG pipeline?Intermediate