- click the "Deploy With Workers" button
- follow the instructions to fork and deploy
- update routes as you requirement
- Fork this project
- use cloudflare worker host: only support proxy one registry
const routes = { "docker.ketches.cn": dockerHub, "quay.ketches.cn": "https://quay.io", "gcr.ketches.cn": "https://gcr.io", "k8s-gcr.ketches.cn": "https://k8s.gcr.io", "k8s.ketches.cn": "https://registry.k8s.io", "ghcr.ketches.cn": "https://ghcr.io", "cloudsmith.ketches.cn": "https://docker.cloudsmith.io", "ecr.ketches.cn": "https://public.ecr.aws", };
- Enable GitHub Actions in your fork (Actions > I understand my workflows, go ahead and enable them)
- Add Secrets in your fork (Settings > Secrets > New repository secret)
CLOUDFLARE_API_TOKEN
: Cloudflare API TokenCLOUDFLARE_ACCOUNT_ID
: Cloudflare Account ID
- Deploy to Cloudflare Workers (Actions > Deploy to Cloudflare Workers)
- Add Custom Domains for your Cloudflare Worker as the routes in
index.js