我已经成功地安装了Gitlab CI,并将它链接到我的gitlab。我还配置了使用带有mysql服务的ruby-2.2镜像的docker的共享runners。
下面是我通过引用https://about.gitlab.com/2015/04/17/unofficial-gitlab-ci-runner/配置runner所执行的代码
$ gitlab-ci-multi-runner register \
--non-interactive \
--url "https://my.gitlab.ip/" \
--registration-token "REGISTRATION_TOKEN" \
--description "ruby-mysql" \
--executor "docker" \
--docker-image ruby:2.2 --docker-mysql latest我有一个样例Ruby / Rails应用程序,但是由于某种原因,运行者并没有运行构建。这是我的.gitlab-ci.yml
image: ruby:2.2
services:
- mysql:latest
before_script:
- ruby -v
- gem install bundler
- cp config/database.yml.example config/database.yml
- cp config/secrets.yml.example config/secrets.yml
- bundle install
spec:
script:
- bundle exec rspec
tags:
- ruby-mysql发布于 2015-08-19 00:28:10
尝试删除.gitlab-ci.yml的第一行image: ruby:2.2
我遇到过类似的问题,CI报告了成功,但没有做任何工作。
我使用了http://my.domain/lint上提供的lint
它将"image“和"stage/stages”标记为不正确。
这就是为什么我认为删除第一行会对你有帮助。
我认为问题在于社区版还不能识别关键字。
https://stackoverflow.com/questions/31901418
复制相似问题