{"id":15653077,"url":"https://github.com/crazy-max/ghaction-dockerhub-mirror","last_synced_at":"2025-04-30T17:42:56.307Z","repository":{"id":40281325,"uuid":"308919764","full_name":"crazy-max/ghaction-dockerhub-mirror","owner":"crazy-max","description":"GitHub Action to mirror a DockerHub repo to another registry","archived":false,"fork":false,"pushed_at":"2024-04-08T06:57:14.000Z","size":72,"stargazers_count":30,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-18T07:32:39.589Z","etag":null,"topics":["actions","buildx","docker","dockerhub","github-actions","mirror","registry"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/dockerhub-mirror","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazy-max.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"crazy-max","custom":"https://www.paypal.me/crazyws"}},"created_at":"2020-10-31T16:06:35.000Z","updated_at":"2024-04-15T03:07:02.000Z","dependencies_parsed_at":"2024-06-20T18:57:24.591Z","dependency_job_id":"6d9549ee-77e6-4aa6-8a8c-f47a9d835588","html_url":"https://github.com/crazy-max/ghaction-dockerhub-mirror","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-dockerhub-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-dockerhub-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-dockerhub-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-dockerhub-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazy-max","download_url":"https://codeload.github.com/crazy-max/ghaction-dockerhub-mirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251753161,"owners_count":21638248,"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":["actions","buildx","docker","dockerhub","github-actions","mirror","registry"],"created_at":"2024-10-03T12:44:37.757Z","updated_at":"2025-04-30T17:42:56.254Z","avatar_url":"https://github.com/crazy-max.png","language":null,"funding_links":["https://github.com/sponsors/crazy-max","https://www.paypal.me/crazyws"],"categories":["Others"],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/crazy-max/ghaction-dockerhub-mirror.svg?style=flat-square)](https://github.com/crazy-max/ghaction-dockerhub-mirror/releases/latest)\n[![CI workflow](https://img.shields.io/github/actions/workflow/status/crazy-max/ghaction-dockerhub-mirror/ci.yml?branch=master\u0026label=ci\u0026logo=github\u0026style=flat-square)](https://github.com/crazy-max/ghaction-dockerhub-mirror/actions?workflow=test)\n[![Become a sponsor](https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github\u0026style=flat-square)](https://github.com/sponsors/crazy-max)\n[![Paypal Donate](https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal\u0026style=flat-square)](https://www.paypal.me/crazyws)\n\n## About\n\nGitHub Action [composite](https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action)\nto mirror a DockerHub repo to another registry.\n\n![](.github/workflow_dispatch.png) ![Screenshot](.github/screenshot.png)\n\n___\n\n* [Usage](#usage)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Usage\n\n```yaml\nname: dockerhub-mirror\n\non:\n  workflow_dispatch:\n    inputs:\n      dockerhub-repo:\n        description: 'DockerHub repository'\n        required: true\n      dest-registry:\n        description: 'Destination registry (eg. ghcr.io)'\n        required: true\n      dest-repo:\n        description: 'Destination repository (eg. username/repo)'\n        required: true\n      dry-run:\n        description: 'Dry run'\n        required: false\n        default: 'false'\n\njobs:\n  dockerhub-mirror:\n    runs-on: ubuntu-latest\n    steps:\n      -\n        name: Set up QEMU\n        uses: docker/setup-qemu-action@v2\n      -\n        name: Set up Docker Buildx\n        uses: docker/setup-buildx-action@v2\n      -\n        name: Login to DockerHub\n        uses: docker/login-action@v2\n        with:\n          username: ${{ secrets.DOCKERHUB_USERNAME }}\n          password: ${{ secrets.DOCKERHUB_TOKEN }}\n      -\n        name: Login to ${{ github.event.inputs.dest-registry }}\n        uses: docker/login-action@v2\n        with:\n          registry: ${{ github.event.inputs.dest-registry }}\n          username: ${{ secrets.DEST_USERNAME }}\n          password: ${{ secrets.DEST_PASSWORD }}\n      -\n        name: Mirror ${{ github.event.inputs.dockerhub-repo }} to ${{ github.event.inputs.dest-registry }}/${{ github.event.inputs.dest-repo }}\n        uses: crazy-max/ghaction-dockerhub-mirror@v1\n        with:\n          dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}\n          dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}\n          dockerhub-repo: ${{ github.event.inputs.dockerhub-repo }}\n          dest-registry: ${{ github.event.inputs.dest-registry }}\n          dest-repo: ${{ github.event.inputs.dest-repo }}\n          dry-run: ${{ github.event.inputs.dry-run }}\n```\n\n## Customizing\n\n### inputs\n\nSee [action.yml](action.yml)\n\n## Contributing\n\nWant to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. If\nyou want to open a pull request, please read the [contributing guidelines](.github/CONTRIBUTING.md).\n\nYou can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) or by\nmaking a [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely!\n\nThanks again for your support, it is much appreciated! :pray:\n\n## License\n\nMIT. See `LICENSE` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fghaction-dockerhub-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazy-max%2Fghaction-dockerhub-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fghaction-dockerhub-mirror/lists"}