```
sudo gitlab-runner register
//Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
填写你项目所在gitlab的网址
//Please enter the gitlab-ci token for this runner:
项目设置里面
// Choose whether the Runner should pick up jobs that do not have tags
runner是否接受没有标签的job
Whether to lock Runner to current project
是否将Runner锁定到当前项目
```
安装gitlab-ci-multi-runner
注册runner
为项目添加gitlab.yml
这个时候,你提交代码的后,去点一下,就会触发runner 因为,gitlab runner 会在机器上创建一个gitlab runner 用户,然后会去拉代码,你需要把代码拷贝到你希望到的目录
因为创建的gitlab runner权限问题,需要为gitlab runner 添加sudo nopasswd
因为node,nvm都是root下安装的,所以gitlab runner 执行npm 会报 'command npm not found' 需要