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
22b48134
Verified
Commit
22b48134
authored
5 months ago
by
Lambert Theisen
Browse files
Options
Downloads
Patches
Plain Diff
try to add Docker image building in CI
parent
7400a756
No related branches found
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
+16
-1
16 additions, 1 deletion
.gitlab-ci.yml
with
16 additions
and
1 deletion
.gitlab-ci.yml
+
16
−
1
View file @
22b48134
image
:
python:3.9
# Use a Python Docker image
stages
:
# Define stages in the pipeline
-
prepare
-
build
-
deploy
prepare
:
image
:
docker:20.10.16
stage
:
build
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
...
...
@@ -23,4 +38,4 @@ pages:
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