1.在电脑上配置gitlab-runner
参考文档 https://docs.gitlab.com/runner/install/osx.html
安装:
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
添加权限
sudo chmod +x /usr/local/bin/gitlab-runner
启动
cd ~
gitlab-runner install
gitlab-runner start
2.gitlab-runner和代码库关联,也就是注册阶段
参考文档 https://docs.gitlab.com/runner/register/index.html
sudo gitlab-runner register
注意:以下两条地址和token输入这个: