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:
parent
ed2875ee69
commit
72b750518d
@ -1,5 +1,19 @@
|
||||
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:
|
||||
stage: deploy
|
||||
before_script:
|
||||
|
Loading…
x
Reference in New Issue
Block a user