Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fxdgm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
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
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
Jan Habscheid
fxdgm
Commits
364f2467
Commit
364f2467
authored
4 months ago
by
Jan Habscheid
Browse files
Options
Downloads
Patches
Plain Diff
Update from main for figures
parent
3ac5a453
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
New Figures
Pipeline
#1501321
passed
4 months ago
Stage: prepare
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+33
-3
33 additions, 3 deletions
.gitlab-ci.yml
with
33 additions
and
3 deletions
.gitlab-ci.yml
+
33
−
3
View file @
364f2467
image
:
python:3.9
# Use a Python
Docker image
image
:
docker:20.10.16
# Define the
Docker image
stages
:
# Define stages in the pipeline
-
prepare
-
build
-
deploy
prepare
:
stage
:
prepare
tags
:
-
docker
services
:
-
docker:20.10.16-dind
before_script
:
-
echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
script
:
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build
--cache-from $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:latest
# Job to build documentation
build-docs
:
stage
:
build
dependencies
:
-
prepare
image
:
name
:
$CI_REGISTRY_IMAGE:latest
entrypoint
:
[
"
"
]
tags
:
-
docker
script
:
-
sphinx-build docs/source docs/build
# Build the documentation
artifacts
:
paths
:
-
docs/build
# Save the build output for later stages
expire_in
:
12 month
# Optional: Set how long to keep the artifacts (default: 30 days)
# Job to deploy documentation to GitLab Pages
pages
:
stage
:
deploy
dependencies
:
-
prepare
image
:
name
:
$CI_REGISTRY_IMAGE:latest
entrypoint
:
[
"
"
]
tags
:
-
docker
script
:
-
mv docs/build public
# Move the build output to the "public" directory
artifacts
:
paths
:
-
public
# Files in the "public" folder will be deployed to GitLab Pages
only
:
-
main
# Only deploy if the changes are in the default branch
\ No newline at end of file
-
main
# Only deploy if the changes are in the 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