From 8e455487ab74e0bb207b5b76c7e0884080499293 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Thu, 16 Jan 2025 14:34:19 +0200 Subject: [PATCH] Allow multiple tags (remove safety check) --- main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 7d38373..60b3dfd 100644 --- a/main.go +++ b/main.go @@ -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, "/")