.gitlab-ci.yml 577 Bytes
Newer Older
Davide Depau's avatar
Davide Depau committed
1 2
image: jekyll/builder

Davide Depau's avatar
Davide Depau committed
3 4 5 6
stages:
  - build
  - deploy

Davide Depau's avatar
Davide Depau committed
7 8 9
variables:
  JEKYLL_ENV: production
  LC_ALL: C.UTF-8
10
  GIT_SUBMODULE_STRATEGY: recursive
Davide Depau's avatar
Davide Depau committed
11

12
before_script:
Davide Depau's avatar
Davide Depau committed
13
  - apk add lftp
Davide Depau's avatar
Davide Depau committed
14
  - ./scripts/ci_fix_baseurl.sh
15

Davide Depau's avatar
Davide Depau committed
16
build-jekyll:
17 18 19 20 21
  stage: build
  cache:
    key: gems
    paths:
    - "/usr/local/bundle/cache"
Davide Depau's avatar
Davide Depau committed
22
  script:
Davide Depau's avatar
Davide Depau committed
23
  - bundle install
Davide Depau's avatar
Davide Depau committed
24
  - jekyll build -d public
25

Davide Depau's avatar
Davide Depau committed
26
deploy-prod:
27 28 29 30 31 32 33 34
  stage: deploy
  script:
  - ./scripts/ci_deploy_site.sh public
  only:
  - master

pages:
  stage: deploy
Davide Depau's avatar
Davide Depau committed
35 36
  script:
    - echo "Nothing to do."
Davide Depau's avatar
Davide Depau committed
37 38 39 40
  artifacts:
    paths:
    - public
  only:
41
  - develop