Add test deploy stage to .gitlab-ci.yml

- Adds a test stage to build the site.
- Uses a specific Hugo image for testing.
- Only runs tests on merge requests and fr-translation.
This commit is contained in:
Roger Gonzalez 2025-04-03 10:02:32 -03:00
parent ed2875ee69
commit 72b750518d
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -1,5 +1,19 @@
image: alpine:latest image: alpine:latest
stages:
- test
- deploy
test_build:
stage: test
image: klakegg/hugo:0.111.3-ext-alpine-ci
script:
- hugo version
- hugo --minify
only:
- merge_requests
- fr-translation
deploy: deploy:
stage: deploy stage: deploy
before_script: before_script: