Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI Testing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
Infrastructure
CI Testing
Commits
596c9b35
Commit
596c9b35
authored
11 months ago
by
Julian Bauknecht
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
750b8c76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#21718
passed
11 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
with
2 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
2
View file @
596c9b35
...
...
@@ -8,8 +8,8 @@
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker pull $CI_REGISTRY_IMAGE/$TAG ||
true
-
export DOCKER_BUILDKIT=1
-
docker build --cache-from $CI_REGISTRY_IMAGE/$TAG:$CI_COMMIT_
BRANCH
-t $CI_REGISTRY_IMAGE/$TAG:$CI_COMMIT_
BRANCH
-f $DOCKERFILE .
-
docker push $CI_REGISTRY_IMAGE/$TAG:$CI_COMMIT_
BRANCH
-
docker build --cache-from $CI_REGISTRY_IMAGE/$TAG:$CI_COMMIT_
REF_SLUG
-t $CI_REGISTRY_IMAGE/$TAG:$CI_COMMIT_
REF_SLUG
-f $DOCKERFILE .
-
docker push $CI_REGISTRY_IMAGE/$TAG:$CI_COMMIT_
REF_SLUG
# In case we are not on the main branch, we only want to do build testing for
# the image, without pushing anything to the registry.
rules
:
...
...
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