Skip to content

Commit a7b0942

Browse files
committed
Changed the amount of repositories saved in the regestry
1 parent 3cc781b commit a7b0942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cleanup-script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ delete_old_tags() {
99
echo "Processing repository: $repo"
1010

1111
# List tags and filter for SHA-based tags, excluding the most recent 5
12-
SHA_TAGS=$(doctl registry repository list-tags "$repo" --format "Manifest Digest" --no-header | grep -E '^sha' | sort -r | tail -n +3) || true
12+
SHA_TAGS=$(doctl registry repository list-tags "$repo" --format "Manifest Digest" --no-header | grep -E '^sha' | sort -r | tail -n +2) || true
1313

1414
if [ -z "$SHA_TAGS" ]; then
1515
echo "No old SHA tags found for repository: $repo"

0 commit comments

Comments
 (0)