{"id":15583748,"url":"https://github.com/david-lor/action-dockerhub-get-tag-metadata","last_synced_at":"2026-05-05T09:33:27.298Z","repository":{"id":45198653,"uuid":"435644145","full_name":"David-Lor/action-dockerhub-get-tag-metadata","owner":"David-Lor","description":"Github Action for fetching the information of a certain Docker image and tag (including the SHA digest) from the DockerHub public registry","archived":false,"fork":false,"pushed_at":"2024-01-01T03:10:53.000Z","size":1241,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T18:47:26.571Z","etag":null,"topics":["docker","docker-hub","dockerhub","github","github-action","github-action-docker","github-action-javascript","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/David-Lor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-06T20:53:14.000Z","updated_at":"2022-01-01T09:52:34.000Z","dependencies_parsed_at":"2023-01-05T04:48:16.022Z","dependency_job_id":null,"html_url":"https://github.com/David-Lor/action-dockerhub-get-tag-metadata","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"62dfac1598b1568b87cd8ae73355efb5a323e2c4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Lor%2Faction-dockerhub-get-tag-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Lor%2Faction-dockerhub-get-tag-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Lor%2Faction-dockerhub-get-tag-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David-Lor%2Faction-dockerhub-get-tag-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/David-Lor","download_url":"https://codeload.github.com/David-Lor/action-dockerhub-get-tag-metadata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162110,"owners_count":20733354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-hub","dockerhub","github","github-action","github-action-docker","github-action-javascript","github-actions"],"created_at":"2024-10-02T20:20:56.049Z","updated_at":"2026-05-05T09:33:27.252Z","avatar_url":"https://github.com/David-Lor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Action: DockerHub Fetch Image-Tag Metadata\n\nGithub Action for fetching the metadata of a certain Docker image and tag (including the SHA digests), from the DockerHub public registry.\n\nThe API endpoint used for fetching the metadata is (with the example of the official Python image): `https://registry.hub.docker.com/v2/repositories/library/python/tags?page=1`\n\n## Action I/O\n\n### Inputs\n\n- `image`: full image name to find, with format `author/image:tag`, or `image:tag` for official images (required)\n- `os`: image OS to find (default: `linux`)\n- `architecture`: image architecture to find (default: `amd64`)\n- `pageLimit`: how many pages of results to parse, until giving up (default: `50`)\n\n### Outputs\n\n**If the image is not found, the Action will fail!**\n\n- `digest`: found image digest (example: `sha256:ec698176504f2f2d0e50e7e627d7db17be0c8c1a36fe34bb5b7c90c79355f7bb`)\n- `size`: found image size, in bytes (example: `43640637`)\n- Full JSON outputs from the API: these are categorized in two outputs:\n    - `tagMetadata` is the whole object for a certain tag (e.g. `python:slim-buster`). This includes an array of images, being each image a variant for a certain os and architecture\n    - `finalImageMetadata` is the whole object for a concrete image of the found tag, matching the input os and architecture. This object is filtered out from the array of images found on the \"tagMetadata\" object\n\n### Example\n\nAn example of the usage can be found on the [test workflow](.github/workflows/test.yaml). A simplified example of how the Action is declared would be the following:\n\n```yaml\nsteps:\n- name: Fetch image metadata\n  id: metadata\n  uses: David-Lor/action-dockerhub-get-tag-metadata@0.1.1\n  with:\n    image: debian:slim-buster\n    os: linux\n    architecture: arm/v7\n    pageLimit: 5\n\n- name: Print image metadata\n  run: |\n    echo \"Digest: ${{ steps.metadata.outputs.digest }}\"\n    echo \"Size: ${{ steps.metadata.outputs.size}} bytes\"\n    echo \"Tag Metadata JSON: ${{ steps.metadata.outputs.tagMetadata }}\"\n    echo \"Target Image Metadata JSON: ${{ steps.metadata.outputs.finalImageMetadata }}\"\n```\n\n## TODO\n\n- Compress node_modules\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-lor%2Faction-dockerhub-get-tag-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavid-lor%2Faction-dockerhub-get-tag-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-lor%2Faction-dockerhub-get-tag-metadata/lists"}