What command should be issued to get the latest tag of a repository in quay?
If ubuntu in for example dockerhub. I would like to specify ubuntu bionic and then bionic-20190515 has to be returned.
curl -H "Authorization: Bearer XYZ" -X GET "https://quay.io/api/v1/repository/<ORG>/<REPO>/tag/" | jq .tags[].name | head -1 | sed -e 's|\"||g'
@030 @koudaiii Can you please suggest how to get the latest tag of some private quay.io repository.
@akshitdevops This is not implemented yet. Could you check whether the curl command returns the latest tag?
@030 The command provided by you works perfect for public quay.io repositories <curl -H "Authorization: Bearer XYZ" -X GET "https://quay.io/api/v1/repository/<ORG>/<REPO>/tag/" | jq .tags[].name | head -1 | sed -e 's|"||g'> .
But tried the same with the private repo , there is no win.