Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
doks-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine-perso
doks-test
Commits
1541b86f
Commit
1541b86f
authored
Nov 16, 2023
by
Antoine Roy
Browse files
Options
Downloads
Patches
Plain Diff
try to fix css
parent
3f291134
Branches
Branches containing commit
No related tags found
1 merge request
!1
Some try on yml
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-11
15 additions, 11 deletions
.gitlab-ci.yml
with
15 additions
and
11 deletions
.gitlab-ci.yml
+
15
−
11
View file @
1541b86f
variables
:
DART_SASS_VERSION
:
1.64.1
HUGO_VERSION
:
0.115.4
NODE_VERSION
:
20.X
NODE_VERSION
:
20.x
GIT_DEPTH
:
0
GIT_STRATEGY
:
clone
GIT_SUBMODULE_STRATEGY
:
recursive
TZ
:
America/Los_Angeles
default
:
imag
e
:
golang:1.20.6-bookworm
image
:
nam
e
:
golang:1.20.6-bookworm
pages
:
script
:
-
export NODE_OPTIONS=--openssl-legacy-provider
# Install brotli
-
apt-get update
-
apt-get install -y brotli
# Install Dart Sass
-
curl -LJO https://github.com/sass/dart-sass/releases/download/
1.64.1/dart-sass-1.64.1
-linux-x64.tar.gz
-
tar -xf dart-sass-
1.64.1
-linux-x64.tar.gz
-
curl -LJO https://github.com/sass/dart-sass/releases/download/
${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}
-linux-x64.tar.gz
-
tar -xf dart-sass-
${DART_SASS_VERSION}
-linux-x64.tar.gz
-
cp -r dart-sass/ /usr/local/bin
-
rm -rf dart-sass*
-
export PATH=/usr/local/bin/dart-sass:$PATH
#Install
ing
Hugo
#
Install Hugo
-
curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
-
apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb
-
rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb
# Install Node.js
-
curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
-
apt-get install -y nodejs
#
i
nstall
ing n
ode.js dependencies
#
I
nstall
N
ode.js dependencies
-
"
[[
-f
package-lock.json
||
-f
npm-shrinkwrap.json
]]
&&
npm
ci
||
true"
#
b
uild
#
B
uild
-
hugo --gc --minify
# Compress
-
find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \;
-
find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \;
artifacts
:
paths
:
-
public
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment