Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pre-Commit
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
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CI Images
Pre-Commit
Commits
be64bd54
Commit
be64bd54
authored
4 years ago
by
Dom Sekotill
Browse files
Options
Downloads
Patches
Plain Diff
Fix CI image deployment
parent
412fdcd5
No related branches found
Branches containing commit
Tags
v2.6.0-2
Tags containing commit
No related merge requests found
Pipeline
#921
passed
4 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-5
4 additions, 5 deletions
.gitlab-ci.yml
with
4 additions
and
5 deletions
.gitlab-ci.yml
+
4
−
5
View file @
be64bd54
...
@@ -44,9 +44,8 @@ deploy:commit:
...
@@ -44,9 +44,8 @@ deploy:commit:
extends
:
.docker
extends
:
.docker
variables
:
variables
:
TAG
:
${CI_REGISTRY_IMAGE}/commit:${CI_COMMIT_SHORT_SHA}
TAG
:
${CI_REGISTRY_IMAGE}/commit:${CI_COMMIT_SHORT_SHA}
before_script
:
-
docker pull ${BUILD_TAG}
script
:
script
:
-
docker pull ${BUILD_TAG}
-
docker tag ${BUILD_TAG} ${TAG}
-
docker tag ${BUILD_TAG} ${TAG}
-
docker push ${TAG}
-
docker push ${TAG}
...
@@ -63,8 +62,8 @@ deploy:tag:
...
@@ -63,8 +62,8 @@ deploy:tag:
except
:
except
:
-
/^[^v]/
-
/^[^v]/
-
/^v[^0-9]/
-
/^v[^0-9]/
script
:
variables
:
TAG
:
${CI_REGISTRY_IMAGE}:latest
after_script
:
-
docker tag ${BUILD_TAG} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v}
-
docker tag ${BUILD_TAG} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v}
-
docker tag ${BUILD_TAG} ${CI_REGISTRY_IMAGE}:latest
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v}
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v}
-
docker push ${CI_REGISTRY_IMAGE}:latest
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