In this tutorial, we will install GitLab Runner to deploy the CI/CD pipeline in the following steps!
You can refer to the installation guide here: Install GitLab Runner | GitLab
Let’s create a setup.sh file in /root/tools/gitlab
cd /root/tools && vi gitlab/setup.sh
Enter the installation commands:
#!/bin/bash
apt update -y
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
apt install gitlab-runner
gitlab-runner --version
Run the command:
sh gitlab/setup.sh
Successful installation: