COMMANDS: run run multi runner service register register a new runner install install service uninstall uninstall service start start service stop stop service restart restart service run-single start single runner unregister unregister specific runner verify verify all registered runners help, h Shows a list of commands or helpfor one command
GLOBAL OPTIONS: --debug debug mode [$DEBUG] --log-level, -l "info" Log level (options: debug, info, warn, error, fatal, panic) --help, -h show help --version, -v print the version
gitlab CI配置
打开网址(比如你的gitlab服务地址是:http://gitlab.your.company/,那gitlab CI的地址就是:http://gitlab.your.company/ci),找到想要配置CI的项目,点击后面的按钮Add project to CI,给项目配置CI功能。
How to setup a new project specific runner Install GitLab Runner software. Checkout the GitLab Runner section to install it Specify following URL during runner setup: http://gitlab.your.company/ci Use the following registration token during setup: 7c92da80317b5f5e1fe1c62a1b0767 Start runner!
root@cloudeye:~# gitlab-ci-multi-runner register Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/ci): ## 输入你CI服务器的地址 http://gitlab.your.company/ci Please enter the gitlab-ci token for this runner: ## 输入你CI项目的token 7c92da80317b5f5e1fe1c62a1b0767 Please enter the gitlab-ci description for this runner: ## 描述信息,只是表述不是很重要 [your-project]: your-project Please enter the gitlab-ci tags for this runner (comma separated): ## runner的标签 dev INFO[0032] fc6e1ee6 Registering runner... succeeded Please enter the executor: docker-ssh, ssh, shell, parallels, docker: ## runner的执行方式,有5种,这里我选择了docker docker Please enter the Docker image (eg. ruby:2.1): ## docker镜像 node:0.12.7 If you want to enable mysql please enter version (X.Y) or enter latest? ## 不需要的话直接空格就可以了
If you want to enable postgres please enter version (X.Y) or enter latest? ## 不需要的话直接空格就可以了
If you want to enable redis please enter version (X.Y) or enter latest? ## 不需要的话直接空格就可以了
If you want to enable mongo please enter version (X.Y) or enter latest? ## 不需要的话直接空格就可以了
INFO[0043] Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!