Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
67e8cf3f
Commit
67e8cf3f
authored
Feb 22, 2022
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify container repository delete tags services
Changelog: other
parent
e6b5fc5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/services/projects/container_repository/third_party/delete_tags_service.rb
...s/container_repository/third_party/delete_tags_service.rb
+3
-5
No files found.
app/services/projects/container_repository/third_party/delete_tags_service.rb
View file @
67e8cf3f
...
...
@@ -41,14 +41,12 @@ module Projects
# update the manifests of the tags with the new dummy image
def
replace_tag_manifests
(
dummy_manifest
)
deleted_tags
=
{}
@tag_names
.
each
do
|
name
|
deleted_tags
=
@tag_names
.
map
do
|
name
|
digest
=
@container_repository
.
client
.
put_tag
(
@container_repository
.
path
,
name
,
dummy_manifest
)
next
unless
digest
deleted_tags
[
name
]
=
digest
end
[
name
,
digest
]
end
.
compact
.
to_h
# make sure the digests are the same (it should always be)
digests
=
deleted_tags
.
values
.
uniq
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment