- 方案的配置文件都是
config.yml,只需要根据实际修改
- 配置文件:
config.yml - AC 脚本:
./github/workflows/cluster_sync.yml
- 配置文件:
config.yml - 同步脚本:
sync_to_github.sh - CI/CD 脚本:
.gitlab-ci.yml
- AC 脚本:
./github/workflows/r2_to_github.yml - **设置3个secrets:
ACCOUNT_ID,WORKER_NAME和API_TOKEN
- AC 脚本:
./github/workflows/s3_to_github.yml - **设置3个secrets:
ACCOUNT_ID,WORKER_NAME和API_TOKEN
在 Cloudflare 面板创建可以读取 Worker 项目的 API, https://dash.cloudflare.com/profile/api-tokens
- 只使用 GitHub:
github_only.js - 只使用 GitLab:
gitlab_only.js - 同时使用 GitHub 和 GitLab:
github_gitlab.js - 同时使用 GitHub, GitLab 和 R2:
github_gitlab_r2.js - 同时使用 GitHub, GitLab,R2 和 B2:
github_gitlab_s3.js
- 从 GitHub 获取
https://<自定义域名>/<文件名>?from=where
-
从 GitHub 获取
https://<自定义域名>/<文件名>?from=github -
从 GitLab 获取
https://<自定义域名>/<文件名>?from=gitlab -
从 Cloudflare R2 获取
https://<自定义域名>/<文件名>?from=r2 -
从 Backblaze B2 获取
https://<自定义域名>/<文件名>?from=b2





