Commit ad49384e authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

set baseurl to match exposed artifact preview

This makes links like stylesheets etc match where they get served up for
exposed artifacts, rendering things a bit more correctly.
parent a456e4b6
......@@ -3,7 +3,8 @@ image: registry.gitlab.com/pages/hugo:latest
test:
script:
- hugo --buildDrafts --buildFuture
- BASE_URL="https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/"
- hugo --buildDrafts --buildFuture --baseURL=$BASE_URL
artifacts:
expose_as: 'Preview changes'
paths:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment