gitlab 注册runner

个人pc注册runner


注册gitlab-runner

```text
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
http://192.168.0.10:815/

Please enter the gitlab-ci token for this runner
1kSt6X3fNksYNUfUkRG5

Please enter the gitlab-ci description for this runner
flin runner

Please enter the gitlab-ci tags for this runner (comma separated):
flin_pc

Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:
shell
```



4 开启gitlab-runner服务

输入开启命令,并检查window服务中和GitLab->Runners中是否开启成功

gitlab-ci-multi-runner-windows-amd64.exe install
```--user "flin@uuzu.com" --password "123456"

gitlab-ci-multi-runner-windows-amd64.exe start
  • 服务器注册Runner
sudo gitlab-ci-multi-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://git.intra.weibo.com
Please enter the gitlab-ci token for this runner:
***(获取git项目token值)
Please enter the gitlab-ci description for this runner:

Please enter the gitlab-ci tags for this runner (comma separated):
tag名字(很重要,在.gitlab-ci.yml文件里面指定tag,匹配使用哪个tag的runner)
Whether to run untagged builds [true/false]: 

Whether to lock the Runner to current project [true/false]:

Registering runner... succeeded                     runner=m15ahKPr
Please enter the executor: docker-ssh, shell, ssh, virtualbox, kubernetes, docker, parallels, docker+machine, docker-ssh+machine:
shell(执行脚本的方式)
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
原文地址:https://www.cnblogs.com/vana/p/10695902.html