Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fxdgm_testing
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_testing
Commits
912b096b
Commit
912b096b
authored
6 months ago
by
Jan Habscheid
Browse files
Options
Downloads
Patches
Plain Diff
Update CI for docker
parent
22b48134
Branches
gitlab-ci-docker
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-5
20 additions, 5 deletions
.gitlab-ci.yml
with
20 additions
and
5 deletions
.gitlab-ci.yml
+
20
−
5
View file @
912b096b
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
...
...
@@ -6,8 +6,9 @@ stages: # Define stages in the pipeline
-
deploy
prepare
:
image
:
docker:20.10.16
stage
:
build
stage
:
prepare
tags
:
-
docker
services
:
-
docker:20.10.16-dind
before_script
:
...
...
@@ -22,20 +23,34 @@ prepare:
# 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
-
main
# Only deploy if the changes are in the default branch
\ No newline at end of file
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