Skip to content
Snippets Groups Projects

deploy gitlab pages with the right baseURL

Merged anarcat requested to merge pages-fix into main
1 file
+ 11
5
Compare changes
  • Side-by-side
  • Inline
+ 11
5
@@ -2,11 +2,6 @@
@@ -2,11 +2,6 @@
variables:
variables:
STAGING_URL: dev.staging.torproject.net
STAGING_URL: dev.staging.torproject.net
include:
- project: tpo/tpa/ci-templates
file:
- pages-deploy.yml
build:
build:
image: registry.gitlab.com/pages/hugo/hugo_extended
image: registry.gitlab.com/pages/hugo/hugo_extended
stage: build
stage: build
@@ -15,3 +10,14 @@ build:
@@ -15,3 +10,14 @@ build:
artifacts:
artifacts:
paths:
paths:
- public
- public
 
 
pages:
 
image: registry.gitlab.com/pages/hugo/hugo_extended
 
stage: deploy
 
script:
 
- hugo --baseURL $CI_PAGES_URL
 
artifacts:
 
paths:
 
- public
 
rules:
 
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
Loading