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 Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay