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
|
||||
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- git submodule init
|
||||
- git submodule update
|
||||
|
||||
pages:
|
||||
stage: build
|
||||
script:
|
||||
- hugo
|
||||
- cp public/en/404.html public/404.html
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
environment: production
|
||||
|
Loading…
Reference in New Issue
Block a user