Created
February 27, 2018 17:08
-
-
Save serkanh/3d61feded47b975da5f061c90591d0b9 to your computer and use it in GitHub Desktop.
sort ecr images by push date and get the latest
This file contains hidden or 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
aws --profile=jumpstart ecr describe-images --repository-name lead-front-door \ | |
--query 'sort_by(imageDetails,& imagePushedAt)[-1].imageTags[0]' --output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment