-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
31 lines (26 loc) · 793 Bytes
/
.gitlab-ci.yml
File metadata and controls
31 lines (26 loc) · 793 Bytes
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
image:
name: "klakegg/hugo:latest-ext"
entrypoint: [""]
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- echo "Checking Git submodules"
- git submodule update --init --recursive
test: # builds and tests your site
script:
- echo "Running Hugo version"
- hugo version # Debugging Hugo version
- hugo --minify # Explicit Hugo build command
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages: # a predefined job that builds your pages and saves them to the specified path.
script:
- echo "Running Hugo version"
- hugo version # Debugging Hugo version
- hugo --minify # Explicit Hugo build command
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
environment: production