2016-08-20 119 views

回答

1

只需添加 - apt-get的更新& &易於得到安裝-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 
相關問題