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 {
toPurge = append(toPurge, org+"/"+pkg.Name+"/"+pkg.Version)
}
}
}
}
}
slices.Sort(images)
slices.Sort(toKeep)
if !slices.Equal(images, toKeep) {
return fmt.Errorf("images from registry don't match with those to keep")
}
// if !slices.Equal(images, toKeep) {
// return fmt.Errorf("images from registry don't match with those to keep")
// }
for _, p := range toPurge {
px := strings.Split(p, "/")