qucli icon indicating copy to clipboard operation
qucli copied to clipboard

What command should be issued to get the latest tag of a repository in quay?

Open 030 opened this issue 6 years ago • 4 comments

If ubuntu in for example dockerhub. I would like to specify ubuntu bionic and then bionic-20190515 has to be returned.

030 avatar Jun 06 '19 22:06 030

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 avatar Jun 18 '19 11:06 030

@030 @koudaiii Can you please suggest how to get the latest tag of some private quay.io repository.

akshitdevops avatar Jul 20 '20 10:07 akshitdevops

@akshitdevops This is not implemented yet. Could you check whether the curl command returns the latest tag?

030 avatar Jul 20 '20 11:07 030

@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.

akshitdevops avatar Jul 20 '20 11:07 akshitdevops