-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
72 lines (64 loc) · 1.34 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# .gitlab-ci.yml - See https://docs.gitlab.com/ee/ci/yaml
variables:
GIT_DEPTH: "3"
GIT_SUBMODULE_STRATEGY: "recursive"
stages:
- build
- lint
- test
- generate
- deploy
.hugo:
# Hugo container images in GitLab Container Registry: https://gitlab.com/pages/hugo/container_registry
# image: registry.gitlab.com/pages/hugo:latest
# Hugo container image including Node.js for the webpacker asset pipeline
image:
name: klakegg/hugo:ext-alpine
entrypoint: [""]
cache:
paths:
- node_modules
script:
- rm -rf public/
- npm install
- rm -rf public/
- NODE_ENV=production hugo --verbose --gc --minify
- ./bin/compress-public
artifacts:
paths:
- public
hugo:
extends: .hugo
stage: test
except:
- main
- master
pages:
extends: .hugo
stage: generate
environment:
name: Gitlab Pages
url: https://quatauta.gitlab.io/
only:
- main
- master
markdownlint:
stage: lint
image:
name: thegeeklab/markdownlint-cli:latest
entrypoint: ["/bin/ash", "-c"]
script:
- markdownlint-cli .
stylelint:
stage: lint
image: pipelinecomponents/stylelint:latest
script:
- stylelint --color '**/*.css'
allow_failure: true
yamllint:
stage: lint
image:
name: cytopia/yamllint:latest
entrypoint: ["/bin/ash", "-c"]
script:
- yamllint -f colored .