.gitlab-ci.yml 506 Bytes
Newer Older
unknown's avatar
unknown committed
1
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
Nouri-Alnahawi's avatar
Nouri-Alnahawi committed
2
image: registry.gitlab.com/pages/hugo/hugo_extended
unknown's avatar
unknown committed
3

Nouri-Alnahawi's avatar
Nouri-Alnahawi committed
4
5
# variables:
  # GIT_SUBMODULE_STRATEGY: recursive
unknown's avatar
unknown committed
6

7
.job_templae: &script
Nouri-Alnahawi's avatar
Nouri-Alnahawi committed
8
9
10
11
12
  before_script:
    - apk add --update npm nodejs
    - npm update
    - npm install -D --save autoprefixer
    - npm install -D --save postcss-cli
unknown's avatar
unknown committed
13
  script:
Nouri-Alnahawi's avatar
Nouri-Alnahawi committed
14
  - hugo --minify --gc
unknown's avatar
unknown committed
15
16
17
  except:
  - master

18
19
20
test:
  <<: *script

unknown's avatar
unknown committed
21
pages:
22
  <<: *script
unknown's avatar
unknown committed
23
24
25
  artifacts:
    paths:
    - public