We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bb69a0 commit d6d36ceCopy full SHA for d6d36ce
.github/workflows/cleanup-script.sh
@@ -9,7 +9,7 @@ delete_old_tags() {
9
echo "Processing repository: $repo"
10
11
# 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 +1) || true
+ SHA_TAGS=$(doctl registry repository list-tags "$repo" --format "Manifest Digest" --no-header | grep -E '^sha' | sort -r | tail -n +2) || true
13
14
if [ -z "$SHA_TAGS" ]; then
15
echo "No old SHA tags found for repository: $repo"
0 commit comments