.gitlab-ci.yml 511 B

123456789101112131415161718192021222324252627282930
  1. image: ruby:alpine
  2. variables:
  3. JEKYLL_ENV: "$SEARCH_AND_DEPLOY_ENV"
  4. stages:
  5. - test
  6. - deploy
  7. before_script:
  8. - apk add --update build-base libffi-dev libcurl nodejs-current
  9. - bundle install --jobs $(nproc) --deployment
  10. cache:
  11. key: ${CI_COMMIT_REF_SLUG}
  12. paths:
  13. - vendor/bundle
  14. test:
  15. stage: test
  16. script:
  17. - bundle exec rake
  18. only:
  19. - master
  20. pages:
  21. stage: deploy
  22. script:
  23. - bundle exec rake publish
  24. artifacts:
  25. paths:
  26. - public
  27. only:
  28. - master
  29. allow_failure: true