Skip to content
Snippets Groups Projects
Verified Commit 38413881 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Use staging environment for hugo build.

parent 2bcb74dd
No related branches found
No related tags found
No related merge requests found
...@@ -19,15 +19,20 @@ build web site: ...@@ -19,15 +19,20 @@ build web site:
stage: build stage: build
image: $WEB_IMAGE image: $WEB_IMAGE
script: script:
# HACK to easier linking to the generated pages
- echo '<meta http-equiv="REFRESH" content="0;URL=web/public/index.html">' >> WebPreview.html
- cd web - cd web
- yarn - yarn
- hugo - hugo --environment staging
rules: rules:
- changes: - changes:
- web/ - web/
artifacts: artifacts:
expose_as: 'Web Preview'
paths: paths:
- WebPreview.html
- web/public - web/public
expire_in: 1 week
cache: cache:
paths: paths:
- web/node_modules - web/node_modules
baseURL = "" baseURL = ""
relativeurls = true relativeurls = true
uglyURLs = true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment