1
0

Allow multiple tags (remove safety check)

This commit is contained in:
2025-01-16 14:34:19 +02:00
parent 92276e4c70
commit 8e455487ab

View File

@ -87,17 +87,14 @@ func run(giteaUrl string, registryUrl string, giteaToken string) error {
} else { } else {
toPurge = append(toPurge, org+"/"+pkg.Name+"/"+pkg.Version) toPurge = append(toPurge, org+"/"+pkg.Name+"/"+pkg.Version)
} }
} }
} }
} }
} }
slices.Sort(images)
slices.Sort(toKeep)
if !slices.Equal(images, toKeep) { // if !slices.Equal(images, toKeep) {
return fmt.Errorf("images from registry don't match with those to keep") // return fmt.Errorf("images from registry don't match with those to keep")
} // }
for _, p := range toPurge { for _, p := range toPurge {
px := strings.Split(p, "/") px := strings.Split(p, "/")