GitLab CI 为什么这个跑步者不做构建?

GitLab CI Why this runner isn't doing the build?

当我推送一个新提交时,我想从运行器开始构建,但我收到这条消息:

This build is stuck, because you don't have any active runners online with any of these tags assigned to them: dev

Go to Runners page

我安装了 GitLab 8.15.2。

我用 C 创建了一个基本项目,一个“.gitlab-ci.yml”文件:

project1:
  tags:
    - dev
  script:
    - make
    - ./test

(如果我删除标签,我会收到几乎相同的消息)

我创建了一个特定的跑步者:

root@debian:~# gitlab-ci-multi-runner register
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
  http://127.0.0.1
Please enter the gitlab-ci token for this runner:
  XXX
Please enter the gitlab-ci description for this runner:
  [debian]: p1
Please enter the gitlab-ci tags for this runner (comma separated):
  dev
Registering runner... succeeded                     runner=XXX
Please enter the executor: kubernetes, docker, parallels, ssh, docker+machine, docker-ssh, shell, virtualbox, docker-ssh+machine:
  shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
root@debian:~# gitlab-ci-multi-runner verify
Running in system -mode.

Verifying runner... is alive                        runner=XXX

在/admin/runners上,我可以看到。

我不明白我错过了什么...

您仍然需要启动 运行ner:

执行gitlab-ci-multi-runner start启动服务,或直接在终端gitlab-ci-multi-runner run到运行。