forked from cms-patatrack/patatrack-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (38 loc) · 792 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
image: ruby:2.7
variables:
JEKYLL_ENV: production
stages:
- build-website
- build-wiki
- deploy
compilation-website:
stage: build-website
before_script:
- bundle install
script:
- bundle update kramdown
- bundle exec jekyll build -d public
artifacts:
paths:
- public
compilation-wiki:
stage: build-wiki
image: python:latest
before_script:
- pip3 install mkdocs mkdocs-material pygments pymdown-extensions
script:
- mkdocs build
artifacts:
paths:
- public/wiki
pages:
stage: deploy
# Docker image with tools to deploy to EOS
image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer:latest
script:
- deploy-eos
dependencies:
- compilation-website
- compilation-wiki
only:
- master@websites/patatrack-website