Skip to content

Commit 751097f

Browse files
authored
Use CI_PAGES_URL in GitLab Pages workflow
1 parent 8584a05 commit 751097f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

content/en/hosting-and-deployment/hosting-on-gitlab.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,15 @@ Define your [CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) jobs by creating
2727

2828
{{< code file=.gitlab-ci.yml copy=true >}}
2929
variables:
30-
DART_SASS_VERSION: 1.80.6
31-
HUGO_VERSION: 0.137.1
32-
NODE_VERSION: 20.x
30+
DART_SASS_VERSION: 1.81.1
3331
GIT_DEPTH: 0
3432
GIT_STRATEGY: clone
3533
GIT_SUBMODULE_STRATEGY: recursive
34+
HUGO_VERSION: 0.140.2
35+
NODE_VERSION: 23.x
3636
TZ: America/Los_Angeles
37-
3837
image:
39-
name: golang:1.22.1-bookworm
38+
name: golang:1.23.4-bookworm
4039

4140
pages:
4241
script:
@@ -59,7 +58,7 @@ pages:
5958
# Install Node.js dependencies
6059
- "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
6160
# Build
62-
- hugo --gc --minify
61+
- hugo --gc --minify --baseURL ${CI_PAGES_URL}
6362
# Compress
6463
- find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \;
6564
- find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \;

0 commit comments

Comments
 (0)