https://docs.docker.com/engine/install/ubuntu/
export arch=amd64
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb"
dpkg -i gitlab-runner_${arch}.deb
sudo chmod +x /usr/local/bin/gitlab-runner
gitlab-runner -v
https://gitlab.com/groups/THE_GROUP/-/runners
- Click "New Group Runner" Button>
- Follow Form
- Obtain token
sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.com/" \
--token <THE TOKEN> \
--executor "docker" \
--docker-image alpine:latest \
--description "<NAME YOUR RUNNER>"
- Update config
sudo vim /etc/gitlab-runner/config.toml
- Replace this values at the end of your gitlab runner
volumes = ["/certs/client", "/mnt/cache:/cache", "/var/run/docker.sock:/var/run/docker.sock"]
network_mode = "host"
pull_policy = ["if-not-present"]
shm_size = 0
Reset GitlabRunner service
sudo systemctl restart gitlab-runner.service