Simply download one of the binaries for your system:
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-armGive it permissions to execute:
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runnerOptionally, if you want to use Docker, install Docker with:
curl -sSL https://get.docker.com/ | shCreate a GitLab CI user (on Linux):
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
Register the runner:
sudo gitlab-ci-multi-runner registerInstall and run as service (on Linux):
sudo gitlab-ci-multi-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-ci-multi-runner startNotice
Note that if gitlab-ci-multi-runner is installed and run as service (what is described in this page), it will run as root, but will execute jobs as user specified by the
installcommand. This means that some of the job functions like cache and artifacts will need to execute/usr/local/bin/gitlab-ci-multi-runnercommand, therefore the user under which jobs are run, needs to have access to the executable.
Stop the service (you need elevated command prompt as before):
sudo gitlab-ci-multi-runner stopDownload the binary to replace runner's executable:
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64Give it permissions to execute:
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runnerStart the service:
sudo gitlab-ci-multi-runner startMake sure that you read the FAQ section which describes some of the most common problems with GitLab Runner.