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

use ugly urls for test-builds

The subdir of the pages-domain used for serving up exposed artifacts
doesn't seem to support serving up index.html by default for a folder.
So let's instead disable pretty-URLs, so we at least get links that
work.
parent 982cd142
Pipeline #447092 passed with stages
in 16 seconds
......@@ -4,7 +4,7 @@ image: registry.gitlab.com/pages/hugo:latest
test:
script:
- BASE_URL="https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/"
- hugo --buildDrafts --buildFuture --baseURL=$BASE_URL
- HUGO_UGLYURLS=true 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