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
Compare revisions
main to gitlab-ci-docker
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
JanHab/fxdgm-testing
Select target project
No results found
gitlab-ci-docker
Select Git revision
Branches
Coverage
gitlab-ci-docker
main
test-install-requirementsshell-executor
Tags
1.0
Swap
Target
JanHab/fxdgm
Select target project
JanHab/fxdgm
JanHab/fxdgm-testing
2 results
main
Select Git revision
Branches
gitlab-ci-docker
main
test-install-requirementsshell-executor
Tags
1.0
1.1.0
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
try to add Docker image building in CI
· 22b48134
Lambert Theisen
authored
4 months ago
Verified
22b48134
Update CI for docker
· 912b096b
Jan Habscheid
authored
4 months ago
912b096b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+32
-2
32 additions, 2 deletions
.gitlab-ci.yml
with
32 additions
and
2 deletions
.gitlab-ci.yml
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
-
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
:
...
...
This diff is collapsed.
Click to expand it.