gitlab-ci-multi-runner

We prefer Gitlab Multi Runner

Link: https://docs.gitlab.com/runner/install/linux-repository.html

Install

#Install Docker
curl -sSL https://get.docker.com/ | sh

# For Debian/Ubuntu
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash

# apt-pinning

cat > /etc/apt/preferences.d/pin-gitlab-runner.pref <<EOF
Explanation: Prefer GitLab provided packages over the Debian native ones
Package: gitlab-ci-multi-runner
Pin: origin packages.gitlab.com
Pin-Priority: 1001
EOF

# For Debian/Ubuntu
sudo apt-get install gitlab-ci-multi-runner

Register

Run following command

sudo gitlab-ci-multi-runner register

Sample output

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
https://gitlab.com
Please enter the gitlab-ci token for this runner
xxx
Please enter the gitlab-ci description for this runner
my-runner
INFO[0034] fcf5c619 Registering runner... succeeded
Please enter the executor: shell, docker, docker-ssh, ssh?
docker
Please enter the Docker image (eg. ruby:2.1):
ruby:2.1
INFO[0037] Runner registered successfully. Feel free to start it, but if it's
running already the config should be automatically reloaded!

Update

sudo apt-get update
sudo apt-get install gitlab-ci-multi-runner

For more help, please check official doc.