Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1 KiB
Newer Older
# In case something goes horribly wrong, you can fall back to `image: ruby:2.5`
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.4
Jacek Lebioda's avatar
Jacek Lebioda committed
stages:
  - build
  - generate_index
  - deploy

build_pages:
  stage: build
  before_script:
    - apt-get -qq update
    - apt-get install -y -qq git-lfs
    - gem install bundler:2.0.2 && bundle install  
  script:
    - bash .ci/deploy.sh
  variables:
    JEKYLL_ENV: production
  artifacts:
    expire_in: 1 day
    paths:
      - build
Jacek Lebioda's avatar
Jacek Lebioda committed

generate the search index:
  stage: generate_index
  image: node:13.8.0-slim
  rules:
    - if: $CI_COMMIT_BRANCH == "master"
    - if: $CI_COMMIT_BRANCH == "develop"
  script:
    - bash .ci/build_indices.sh
    - mv build processed_build
  artifacts:
    expire_in: 1 day
    paths:
      - processed_build
Jacek Lebioda's avatar
Jacek Lebioda committed
  image: alpine:3.11.3
Jacek Lebioda's avatar
Jacek Lebioda committed
  rules:
    - if: $CI_COMMIT_BRANCH == "master"
    - if: $CI_COMMIT_BRANCH == "develop"
Jacek Lebioda's avatar
Jacek Lebioda committed
    - mv processed_build public
    expire_in: 1 week