一、安装
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
yum install -y gitlab-runner
二、注册
在 gitlab 后台注册新的 runner,按照提示输入命令,运行方式选择 docker, 默认镜像选择 docker:stable
gitlab-runner register --url http://172.20.103.21 --token xxxxxxxx
systemctl enable gitlab-runner
systemctl restart gitlab-runner