Commit 4a4bd8a9 authored by Daniel Stone's avatar Daniel Stone

Allow overriding of base URL from project

$CI_PAGES_URL will be set to the default Pages host, ignoring custom
domains. This means that we get
https://mesa.pages.freedesktop.org/mesa3d.org/ for the base URL when
running in the main repository, which is not what we want.

Allow this to be overridden by a project setting to define the best
canonical URL.
Signed-off-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
parent 25a99923
Pipeline #160507 passed with stages
in 15 seconds
......@@ -12,7 +12,8 @@ test:
pages:
script:
- hugo --baseURL="$CI_PAGES_URL"
- test -n "$PAGES_DEPLOY_URL" || PAGES_DEPLOY_URL="$CI_PAGES_URL"
- hugo --baseURL="$PAGES_DEPLOY_URL"
artifacts:
paths:
- public
......
Markdown is supported
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