Created
May 30, 2017 14:47
-
-
Save nandotorres/5668d702f0d06c6b4fed90771545bda8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myrepo=my_repo_name | |
aws ecr list-images --repository-name $myrepo --query 'imageIds[?type(imageTag)!=`string`].[imageDigest]' --output text | while read line; do aws ecr batch-delete-image --repository-name $myrepo --image-ids imageDigest=$line; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment