Looking at this command, for example, the following results are produced by default
curl -s --max-time 60 https://quay.io/api/v1/repository/okd/scos-release/tag/ | jq -r ".tags[].name" | sort | grep ^4.21
4.21.0-okd-scos.ec.0
4.21.0-okd-scos.ec.1
4.21.0-okd-scos.ec.10
4.21.0-okd-scos.ec.11
4.21.0-okd-scos.ec.2
4.21.0-okd-scos.ec.3
4.21.0-okd-scos.ec.4
4.21.0-okd-scos.ec.5
4.21.0-okd-scos.ec.6
4.21.0-okd-scos.ec.7
4.21.0-okd-scos.ec.8
4.21.0-okd-scos.ec.9
Note that the last .11 version is not in the end of the output, thus the .9 version will always be selected.
Consider using sort -V to properly sort the tags. Also note that when both ec and released versions are available, the released version must be selected.
Looking at this command, for example, the following results are produced by default
Note that the last
.11version is not in the end of the output, thus the.9version will always be selected.Consider using
sort -Vto properly sort the tags. Also note that when bothecand released versions are available, the released version must be selected.