Intro
CI/CD Fundamentals
.gitlab-ci.yml Basics
GitLab Runners
GitLab Executors
Specific Runners
Artifacts
Documentation Generation
Monitoring
5.2. Install GitLab Runner on Linux
1. Open a terminal on your machine.
2. Run the following commands to install GitLab Runner:
# Download the binary for your system
sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
# Give it permission to execute
sudo chmod +x /usr/local/bin/gitlab-runner
# Create a GitLab Runner user
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
# Install and run as a service
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-runner start