Skip to content

Commit

Permalink
Update remove_images.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancolgate authored Sep 14, 2024
1 parent 4018c24 commit 3910af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remove_images.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DIGESTS=$(doctl registry repository lm $1 --format Digest,UpdatedAt,Tags | tail -n +2 | sort -rk2 | grep -v -E "$4" | awk '{print $1}' | tail -n +$(($2+1)))
DIGESTS=$(doctl registry repository lm $1 --format Digest,UpdatedAt,Tags | tail -n +2 | sort -rk2 | grep -v -E "$3" | awk '{print $1}' | tail -n +$(($2+1)))
for DIGEST in $DIGESTS; do
doctl registry repository delete-manifest $1 $DIGEST --force
done
Expand Down

0 comments on commit 3910af3

Please sign in to comment.