Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Finland2024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EnergyMegagame
Finland2024
Commits
db1f50e7
Commit
db1f50e7
authored
6 months ago
by
Lena Buffoni
Browse files
Options
Downloads
Patches
Plain Diff
workflow
parent
8fd03eb9
No related branches found
No related tags found
No related merge requests found
Pipeline
#140374
passed
6 months ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+38
-0
38 additions, 0 deletions
.gitlab-ci.yml
with
38 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
38
−
0
View file @
db1f50e7
#
# Before using this .gitlab-ci.yml:
#
# - This example uses the latest Docker image, but you might want to use the
# exact version to avoid any broken pipelines.
# All available Hugo versions are listed under https://gitlab.com/pages/hugo/container_registry.
# - Read about the difference between hugo and hugo_extended
# https://gitlab.com/pages/hugo/-/blob/main/README.md#hugo-vs-hugo_extended.
# - To change the theme, see
# https://gitlab.com/pages/hugo/-/blob/main/README.md#use-a-custom-theme.
#
image
:
registry.gitlab.com/pages/hugo/hugo_extended:latest
variables
:
HUGO_ENV
:
production
THEME_URL
:
"
github.com/theNewDynamic/gohugo-theme-ananke"
default
:
before_script
:
-
apk add --no-cache go curl bash nodejs
-
hugo mod get -u $THEME_URL
## Uncomment the following if you use PostCSS. See https://gohugo.io/hugo-pipes/postcss/
#- npm install postcss postcss-cli autoprefixer
test
:
script
:
-
hugo
rules
:
-
if
:
$CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages
:
script
:
-
hugo
artifacts
:
paths
:
-
public
rules
:
-
if
:
$CI_COMMIT_REF_NAME == $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