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