{"id":15532043,"url":"https://github.com/togettoyou/hub-mirror","last_synced_at":"2025-05-14T14:08:20.325Z","repository":{"id":37645570,"uuid":"450409826","full_name":"togettoyou/hub-mirror","owner":"togettoyou","description":"🚀 Docker 镜像代理，通过 GitHub Actions 将 docker.io、gcr.io、registry.k8s.io、k8s.gcr.io、quay.io、ghcr.io 等国外镜像转换为国内镜像加速下载","archived":false,"fork":false,"pushed_at":"2025-02-25T03:51:31.000Z","size":1200,"stargazers_count":1070,"open_issues_count":2,"forks_count":645,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T02:55:52.474Z","etag":null,"topics":["docker-image","docker-registry","dockerhub","gcr-registry","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Go","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/togettoyou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-21T08:22:06.000Z","updated_at":"2025-04-10T05:50:49.000Z","dependencies_parsed_at":"2024-06-18T20:11:54.879Z","dependency_job_id":"e006e671-a26d-45e7-85af-31421131860f","html_url":"https://github.com/togettoyou/hub-mirror","commit_stats":{"total_commits":67,"total_committers":6,"mean_commits":"11.166666666666666","dds":"0.13432835820895528","last_synced_commit":"163823c7ae000b8b9df422679abda22c9aa0cec5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togettoyou%2Fhub-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togettoyou%2Fhub-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togettoyou%2Fhub-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/togettoyou%2Fhub-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/togettoyou","download_url":"https://codeload.github.com/togettoyou/hub-mirror/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159732,"owners_count":22024564,"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-image","docker-registry","dockerhub","gcr-registry","github-actions"],"created_at":"2024-10-02T11:28:56.538Z","updated_at":"2025-05-14T14:08:20.304Z","avatar_url":"https://github.com/togettoyou.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## hub-mirror\n\n使用国内镜像仓库来提供（但不限于） docker.io、gcr.io、registry.k8s.io、k8s.gcr.io、quay.io、ghcr.io 等国外镜像加速下载服务\n\n示例：https://github.com/togettoyou/hub-mirror/issues/2816\n\n\u003cimg src=\"https://github.com/user-attachments/assets/ea93572c-6c05-4751-bde7-35a58fe083f1\" width=\"520\" alt=\"gopher云原生公众号二维码\"\u003e\n\n👆 扫码或搜索关注公众号：**gopher云原生**\n\n## 使用流程\n\n### 1️⃣ Fork 本项目\n\n`Fork` 该项目，后续所有操作都在你 `Fork` 的仓库中进行。\n\n### 2️⃣ 绑定账号\n\n- 进入 `Settings` → `Secrets and variables` → `Actions`\n- 选择 `New repository secret`，并添加以下 `Secrets`：\n\n  - `DOCKER_USERNAME`：镜像仓库登录名\n  - `DOCKER_TOKEN`：镜像仓库密码\n  - `DOCKER_REPOSITORY`：镜像仓库地址\n\n其中 `DOCKER_REPOSITORY` 示例：\n\n- 腾讯云: `ccr.ccs.tencentyun.com/[namespace]`\n- 阿里云: `registry.cn-hangzhou.aliyuncs.com/[namespace]`\n\n例如我的是：`registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou`\n\n🔹 **示例截图**  \n\n![阿里云镜像仓库](https://github.com/user-attachments/assets/6d7f3fda-cc8c-40dd-adf8-627a704c8533)\n\n![Secrets 配置示例](https://github.com/user-attachments/assets/13010521-13b2-4c55-83d6-50956e039434)\n\n\n### 3️⃣ 开启 Issues 功能\n\n- 进入 `Settings` → `General` → `Features`\n- 启用 `Issues`\n\n🔹 **示例截图**  \n\n![开启 Issues](https://github.com/user-attachments/assets/f981a0b9-b164-4582-8f5e-46d8cbe41bae)\n\n\n### 4️⃣ 配置 Actions 权限\n\n- 进入 `Settings` → `Actions` → `General`\n- 在 `Workflow permissions` 选项中，选择：\n  - ✅ `Read and write permissions`\n\n🔹 **示例截图**  \n\n![修改 Actions 权限](https://github.com/user-attachments/assets/9f556ced-d134-41f7-b47e-fa95c10db08a)\n\n\n### 5️⃣ 添加 Issue Labels\n\n- 进入 `Issues` → `Labels`\n- 点击 `New label`\n- 依次添加以下 Labels：\n\n  - `hub-mirror`\n  - `success`\n  - `failure`\n\n🔹 **示例截图**  \n\n![添加 Labels](https://github.com/user-attachments/assets/b03db5eb-2401-49ce-ad12-515969dec27d)\n\n\n### 6️⃣ 启用 Actions Workflow\n\n- 进入 `Actions`\n- 选择 `hub-mirror`\n- 在右上角 `···` 菜单中选择 `Enable Workflow`\n\n🔹 **示例截图**  \n\n![启用 Workflow](https://github.com/user-attachments/assets/0709ac59-a731-4266-826e-0c619e933853)\n\n\n### 7️⃣ 提交 Issue 触发同步\n\n- 在 `Fork` 的仓库 `Issues` 页面，点击 `New issue`\n- 选择 `hub-mirror` 模板，填写所需信息并提交\n\n🔹 **示例截图**  \n\n![提交 Issue](https://github.com/user-attachments/assets/c0357521-6dd0-4f13-8a99-bccdf1314ab8)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftogettoyou%2Fhub-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftogettoyou%2Fhub-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftogettoyou%2Fhub-mirror/lists"}