参考地址:https://docs.gitlab.com/runner/install/linux-repository.html
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
# 安装
yum install gitlab-runner
# 安装指定版本
yum list gitlab-runner --showduplicates | sort -r
yum install gitlab-runner-10.0.0-1
gitlab-runner register
gitlab-runner register -n \
--url http://10.82.12.180/ \
--registration-token bGmQzGtum2KqLzLtjbez \
--executor docker \
--description "docker" \
--docker-image "modules/kubectl" \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock", "/home/gitlab-runner/maven-repo"]