I have an aws query that I want to filter in jq
.
I want to filter all the imageTags
that don't end with "latest"
到目前为止,我做到了这一点,但它过滤包含"最新"的内容,而我想过滤不包含"最新"的内容(或不以"最新"结尾)
aws ecr describe-images --repository-name <repo> --output json | jq '.[]' | jq '.[]' | jq "select ((.imagePushedAt < 14893094695) and (.imageTags[] | contains(\"latest\")))"
谢谢