使用国内镜像仓库来提供(但不限于) docker.io、gcr.io、registry.k8s.io、k8s.gcr.io、quay.io、ghcr.io 等国外镜像加速下载服务
直接在我的项目中提交 issues ,按照 issue 模板修改内容即可
个人配置的是阿里云个人实例镜像仓库,仓库限额为 300 ,所以有可能出现上传或拉取失败的情况(本人会不定时清理历史仓库
-
绑定账号
在
Settings-Secrets and variables-Actions选择New repository secret新建DOCKER_USERNAME(镜像仓库登录名) 和DOCKER_TOKEN(镜像仓库密码)以及DOCKER_REPOSITORY三个 Secrets其中
DOCKER_REPOSITORY配置例子:- 腾讯云:
ccr.ccs.tencentyun.com/[namespace] - 阿里云:
registry.cn-hangzhou.aliyuncs.com/[namespace]
例如我的是:
registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou - 腾讯云:
-
开启
Settings-General-Features中的Issues功能
- 修改
Settings-Actions-General中的Workflow permissions为Read and write permissions
- 在
Issues-Labels选择New label依次添加三个 label :hub-mirror、success、failure
- 在
Actions里选择hub-mirror,在右边···菜单里选择Enable Workflow
- 在 Fork 的项目中提交 issues







