From c764182a6d973ec2cbd06e0c19e491215b34401d Mon Sep 17 00:00:00 2001 From: Stephan Barth Date: Sun, 21 Apr 2024 05:34:52 +0200 Subject: [PATCH] bugfix(gitlab-ci): refined pattern matching for not matching manifest.json --- .gitlab-ci/sanitize-docker.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/sanitize-docker.pl b/.gitlab-ci/sanitize-docker.pl index 51704aebe..1cb3dd4dc 100755 --- a/.gitlab-ci/sanitize-docker.pl +++ b/.gitlab-ci/sanitize-docker.pl @@ -154,7 +154,7 @@ my ($outerjson, $imageid) = (); opendir($dirh, '.') or die "Could not read dir '.', because: $!"; while(my $fn = readdir($dirh)) { next if $fn=~m#^\.#; - if($fn=~m#(.*)\.json#) { + if($fn=~m#(.{16,})\.json#) { # it shall match on hash sums but not for example on manifest.json $outerjson = $1; next }