Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Web
Research
Commits
0237660b
Commit
0237660b
authored
Oct 13, 2021
by
anarcat
Browse files
Merge branch 'pages-test' into 'main'
fix hugo build See merge request
!1
parents
cc9f3d7b
3edd5b45
Pipeline
#14508
passed with stages
in 3 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0237660b
# use an older version of hugo, newer versions fail to build on first
# run
#
# gohugo.io does not maintain docker images and the one they do
# recommend fail in GitLab CI. we do not use the GitLab registry
# either because we couldn't figure out the right syntax to get the
# old version from Debian stretch (0.54)
image
:
registry.hub.docker.com/library/debian:buster
include
:
project
:
tpo/tpa/status-site
file
:
.gitlab-ci.yml
build
:
before_script
:
-
apt update
-
apt upgrade -yy
-
apt install -yy hugo
stage
:
build
script
:
-
hugo
artifacts
:
paths
:
-
public
# we'd like to *not* rebuild hugo here, but pages fails with:
#
# jobs pages config should implement a script: or a trigger: keyword
#
# and even if we *do* put a dummy script (say "true"), this fails
# because it runs in parallel with the build stage, and therefore
# doesn't inherit artifacts the way a deploy stage normally would.
pages
:
stage
:
deploy
before_script
:
-
apt update
-
apt upgrade -yy
-
apt install -yy hugo
script
:
-
hugo
artifacts
:
paths
:
-
public
only
:
-
merge_requests
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
SITE_URL
:
research.torproject.org
SUBDIR
:
public/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment