Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Physical Prototyping Projects
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toma
Physical Prototyping Projects
Commits
8da58baa
Commit
8da58baa
authored
1 year ago
by
toma
Browse files
Options
Downloads
Patches
Plain Diff
add gitlab CI config
parent
2f5716f2
No related branches found
No related tags found
No related merge requests found
Pipeline
#7565
failed
1 year ago
Stage: test
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 @
8da58baa
#
# 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