Update gitlab-ci to include 404 page + refactor
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
519ae7e749
commit
9b26a5a294
@ -3,17 +3,20 @@
|
|||||||
#
|
#
|
||||||
image: registry.gitlab.com/pages/hugo/hugo:latest
|
image: registry.gitlab.com/pages/hugo/hugo:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
before_script:
|
|
||||||
- git submodule init
|
|
||||||
- git submodule update
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- hugo
|
- hugo
|
||||||
|
- cp public/en/404.html public/404.html
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
environment: production
|
||||||
|
Loading…
Reference in New Issue
Block a user