Ubuntu

To easily install GitLab Runner on Ubuntu, make sure that you have a recent version installed, as GitLab only provides packages for the currently supported versions. Next, open a Terminal session on your Ubuntu box and run the following command:

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bashcat > /etc/apt/preferences.d/pin-gitlab-runner.pref <<EOFExplanation: Prefer GitLab provided packages over the Debian native onesPackage: gitlab-runnerPin: origin packages.gitlab.comPin-Priority: 1001EOFsudo apt-get install gitlab-runner

Let's break this down a bit.

The first command downloads and executes a script from GitLab that checks if your operating system is compatible, sets up your ...

Get GitLab Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.