Skip to content
Snippets Groups Projects

Fix URLs on forked projects by setting baseURL

Merged Emanuele Aina requested to merge em/apertis-website:master into master
+ 4
2
@@ -11,12 +11,14 @@ stages:
- generate-html
- generate-pdf
test-html:
#test-html:
pages:
image: registry.gitlab.com/pages/hugo:0.62.2
stage: generate-html
script:
- DEFAULT_BASEURL=${CI_PAGES_URL##http:} # don't force stuff on plain HTTP when publishing on HTTPS
- BASEURL=${BASEURL:-$DEFAULT_BASEURL} # set BASEURL in the CI variables to override it
- echo "Using base URL '$BASEURL'"
- hugo -b "${BASEURL}"
artifacts:
paths:
@@ -38,7 +40,7 @@ test-pdf:
except:
- master
pages:
.pages:
extends: .gen-pdf
only:
- master
Loading