Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
030 opened this issue Jun 6, 2019 · 4 comments
Open

Comments

@030
Copy link
Contributor

030 commented Jun 6, 2019

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

@030
Copy link
Contributor Author

030 commented Jun 18, 2019

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'

@akshitdevops
Copy link

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

@030
Copy link
Contributor Author

030 commented Jul 20, 2020

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

@akshitdevops
Copy link

@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///tag/" | jq .tags[].name | head -1 | sed -e 's|"||g'> .

But tried the same with the private repo , there is no win.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants