Update gitlab-ci to include 404 page + refactor
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
nemunaire 2024-02-29 10:22:28 +01:00
parent 519ae7e749
commit 9b26a5a294
1 changed files with 7 additions and 4 deletions

View File

@ -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