进入GitLab 项目页面 -> Settings -> CI / CD ,展开Runners settings,找到Specific Runners,其中的注册地址和Token 下面会用到:
1 2 3 4 5 6 7 8 9 10 11 12
$ cd C:\GitLab-Runner #进入命令所在的目录 $ .\gitlab-runner.exe register Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com ) # 输入上面的地址 Please enter the gitlab-ci token for this runner # 输入上面的 Token Please enter the gitlab-ci description for this runner # 输入一个描述,比如 runner01,或者任何便于记忆便于区分的名字 Please enter the gitlab-ci tags for this runner (comma separated): # 可以留空,用以区分你的 runner Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell: # 输入 shell