我正在尝试使用gitlab runner(用于gitlab页面)构建Jekyll博客。我收到以下错误:错误:构建失败:退出代码1.到目前为止,一切正常。链接到项目:https://gitlab.com/dash.plus/dashBlog
答案 0 :(得分:1)
添加 - apt-get update&& apt-get install -y nodejs 和ofc - 捆绑安装
在gitlab-cl.yaml
中image: ruby:2.3
test:
stage: test
script:
- gem install jekyll
- bundle install
- apt-get update && apt-get install -y nodejs
- bundle exec jekyll -d test/
artifacts:
paths:
- test
except:
- master
pages:
stage: deploy
script:
- gem install jekyll
- bundle install
- apt-get update && apt-get install -y nodejs
- bundle exec jekyll -d public/
artifacts:
paths:
- public
only:
- master