Henri Sekeladi
Posted on October 9, 2024
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).
Run the code provided on this picture to our gitlab runner server.
List of Runner that work is green
Upgrade GitLab Runner
sudo apt-get update
sudo apt-get install gitlab-runner
That's it.
Hopefully this article helps you!
Posted on October 9, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.