Install a GitLab Runner on Your Raspberry Pi to run GitLab CI jobs

You don’t have to rely on the GitLab.com infrastructure to run your GitLab CI pipelines. Let me show you how to set up a GitLab CI Runner on a Raspberry Pi 4.

Valentin Despa
DevOps with Valentine

--

Last updated: December 2021

Basic Raspberry Pi setup

Let’s make sure we are both on the same page. I have a Raspberry Pi 4 Model B with 8GB of RAM. The installation process should be similar to any older or newer Raspberry Pis.

Using the Raspberry Pi Imager I have installed the latest version of the Raspberry Pi OS (which is essentially a Debian). You can also install the lite version with no desktop environment.

On the boot partition, I have also added an empty ssh file so that I can open a remote ssh connection.

With an Ethernet cable, I have connected the Raspberry Pi to my router.

--

--

Valentin Despa
DevOps with Valentine

Software developer, educator & overlander • GitLab Hero • AWS Community Builder • Postman Supernova • Imprint: http://vdespa.com/imprint