DEV Community

Henri Sekeladi
Henri Sekeladi

Posted on

Installing GitLab Runner on Ubuntu Server 24.04

In this article we will install gitlab runner on ubuntu server 24.04 hosted on EC2 Instance of AWS.

First, update the ubuntu package

sudo apt update

Install gitlab runner

We need to install repository gitlab runner from gitlab.com

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash

Install the gitlab runner

sudo apt-get install gitlab-runner

Register gitlab runner

We share article about installing gitlab ce on this post.

This article set the gitlab runner on the instance level, so every project will run the job with this runner.

To register gitlab runner, we need to add runner via Gitlab Admin. Insert the Tags to math the tag of project or we can check the Run untagged jobs to run every project on this instance (hence, we set the runner on the instance level).

Add New Runner

Run the code provided on this picture to our gitlab runner server.

Detail Runner

List of Runner that work is green

Gitlab Runner List

Upgrade GitLab Runner

sudo apt-get update
sudo apt-get install gitlab-runner

That's it.

Hopefully this article helps you!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more