Commit fdbb11ea authored by David Fernandez's avatar David Fernandez

Merge branch 'issue_232496_3' into 'master'

Simplify container repository delete tags services

See merge request gitlab-org/gitlab!81187
parents d94c5986 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment