In our previous post has been explained to install GitLab runner package(dpkg), this post will guide you how do we install the GitLab runner manually with binary file on your Ubuntu or Debian or CentOS. the steps are below
STEP 1: download one of the binaries for your system:
# Linux x86-64
sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
Note:
if you using #Linux arm - change the gitlab-runner-linux-arm
#arm64 - change the gitlab-runner-linux-arm64
#Linux x86 - change the gitlab-runner-linux-386
STEP2: Set the permissions to the file:
sudo chmod +x /usr/local/bin/gitlab-runner
STEP 3: Install gitlab service:
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
STEP4: run as git-lab service:
sudo gitlab-runner start
STEP 5: Register a runner:
Gitlab requires a token during runner set-up, which can be accessed in the Settings section of your repository. On the left-pane, navigate to Settings->CI/CD, and click “Expand” on the “Runners” tab Copy your gitlab URL & Copy your token name
sudo gitlab-runner register
GitLab Runner is running successfully
STEP6: Test that the GitLab Runner is running:
sudo service gitlab-runner status
Comments (0)