https://docs.gitlab.com/runner/install/
1、下载二进制包
sudo curl --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64"
2、设置权限
sudo chmod +x /usr/local/bin/gitlab-runner
2.1、注册runner https://docs.gitlab.com/runner/register/index.html
1、启动gitlab-runner的容器
docker run --rm -it -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register
2.2、配置runner