2

I'm trying to build Jekyll blog using gitlab runner (for gitlab pages). I get the following error: ERROR: Build failed: exit code 1. So far, everything worked. Link to project: https://gitlab.com/dash.plus/dashBlog

1 Answer 1

1

Just add - apt-get update && apt-get install -y nodejs And ofc - bundle install

inside 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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.