//by zgcwkj const HTML = `
GitHub文件鏈接帶不帶協議頭都可以,支持release、archive以及文件,右鍵複制出來的鏈接都是符合標准的,更多用法、clone加速請參考這篇文章。
release、archive使用cf加速,文件會跳轉至JsDelivr
注意,不支持項目文件夾
分支源碼:https://github.com/hunshcn/project/archive/master.zip
release源碼:https://github.com/hunshcn/project/archive/v0.1.0.tar.gz
release文件:https://github.com/hunshcn/project/releases/download/v0.1.0/example.zip
分支文件:https://github.com/hunshcn/project/blob/master/filename
為了加速鏡像拉取,你可以使用以下命令設置registery mirror:
sudo tee /etc/docker/daemon.json <<EOF
{
"registry-mirrors": ["https://{{host}}"]
}
EOF
為了避免 Worker 用量耗盡,你可以手動 pull 鏡像然後 re-tag 之後 push 至本地鏡像倉庫:
docker pull {{host}}/library/alpine:latest # 拉取 library 鏡像
docker pull {{host}}/coredns/coredns:latest # 拉取 library 鏡像