lvra.gitlab.io/.gitlab-ci.yml

47 lines
842 B
YAML
Raw Normal View History

2023-12-04 20:39:43 +01:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
## GitLab defaults to:
# stages:
# - build
# - test
# - deploy
build-site:
stage: build
image: registry.gitlab.com/pages/hugo/hugo_extended
2023-12-22 10:16:24 +01:00
script:
- hugo
artifacts:
paths:
- public
2023-12-22 10:16:24 +01:00
test-html:
stage: test
image:
name: wjdp/htmltest:latest
entrypoint: [""]
cache:
key: htmltest-cache
paths:
- tmp/
2024-04-16 07:26:02 +02:00
script:
- htmltest
2024-04-16 07:26:02 +02:00
test-trailing-spaces:
stage: test
needs: [] # ok to run before build-site
2023-12-04 20:39:43 +01:00
script:
- ./test_trailing_spaces.sh
2023-12-04 20:39:43 +01:00
# The GitLab Pages job must always be named "pages", and result in a "public" artifact.
# Our "public" artifact is created above, but GitLab jobs will fetch all artifacts from previous stages.
2023-12-04 20:39:43 +01:00
pages:
stage: deploy
script: ls -ld public
2024-08-28 22:00:07 +02:00
artifacts:
paths:
- public
2023-12-04 20:39:43 +01:00
only:
- main