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

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

8
9
10
11
12
13
14
15
16
17
18
19
20
21
stages:
- build
- deploy

before_script:
- apt install rsync
- ./scripts/ci_fix_baseurl.sh

build:
  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
26
27
28
29
30
31
32
33
34

production:
  stage: deploy
  script:
  - ./scripts/ci_deploy_site.sh public
  only:
  - master

pages:
  stage: deploy
Davide Depau's avatar
Davide Depau committed
35
36
37
38
  artifacts:
    paths:
    - public
  only:
39
  - develop
Davide Depau's avatar
Davide Depau committed
40