Skip to content

API to get when a Docker tag was pushed/created #124413

Answered by parkr
parkr asked this question in Packages
Discussion options

You must be logged in to vote

It looks like you can paginate the versions with more metadata here: https://docs.github.com/en/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-an-organization

$ curl -L   -H "Accept: application/vnd.github+json"   \
  -H "Authorization: Bearer $GITHUB_TOKEN"   \
  -H "X-GitHub-Api-Version: 2022-11-28"   \
  -v \
  'https://api.github.com/orgs/gethomepage/packages/container/homepage/versions?state=active&per_page=100' | jq .
< HTTP/2 200 
< server: GitHub.com
< date: Fri, 17 May 2024 20:18:55 GMT
< content-type: application/json; charset=utf-8
< x-github-media-type: github.v3; format=json
< link: <https://api.github.com/organizations/122929872/pac…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by parkr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Question inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
2 participants