.gitlab-ci.yml 944 Bytes
Newer Older
1
2
3
# YAML file for GitLab CI
---

4
image: ruby:latest
5
6
7
8
9
10

stages:
  - build
  - deploy
  - after_deploy

11
12
13
14
15
16
17
18
19
20
21
22
.artifacts_extension:
  artifacts:
    paths:
      - public
      - team.yml
    expire_in: 1d

.only_extension:
  only:
    refs:
      - gitlab_ci_setup_production

23
24
25
before_script:
  - gem install bundler jekyll --no-document

26
27
28
run_jekyll_latest_dependencies:
  stage: build
  script:
29
    - "[[ -f \"Gemfile.lock\" ]] && rm Gemfile.lock"
30
    - bundle update --jobs $(nproc)  "${FLAGS[@]}"
31
32
33
    - bundle exec jekyll build -d public
  allow_failure: true

34
35
run_jekyll_production:
  stage: build
36
  script:
37
    - cp _data/team.yml team.yml
38
    - bundle install --jobs $(nproc)  "${FLAGS[@]}"
39
    - bundle exec jekyll build -d public
40
41
42
  extends:
    - .artifacts_extension
    - .only_extension
43
44
45
46
47

pages:
  stage: deploy
  script:
    - echo "deploy"
48
49
50
  extends:
    - .artifacts_extension
    - .only_extension
51
52
  dependencies:
    - run_jekyll_production