We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc781b commit a7b0942Copy full SHA for a7b0942
.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 +3) || 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