You can use not to reverse the logic
(.imageTags[] | contains(\"latest\") | not)
Also, I’d imagine you can simplify your pipeline into a single jq call.
You can use not to reverse the logic
(.imageTags[] | contains(\"latest\") | not)
Also, I’d imagine you can simplify your pipeline into a single jq call.