cache: parallel upload
This commit is contained in:
9
.github/workflows/lo-test.yml
vendored
9
.github/workflows/lo-test.yml
vendored
@@ -188,10 +188,11 @@ jobs:
|
||||
#zstdmt -c --adapt --long lede.img | parallel --wc --block 1.99G --pipe \
|
||||
#'curl -s --data-binary @- -H "$AUTH" -H "Content-Type: application/octet-stream" https://uploads.$cache_path/$cache_repo_id/assets?name=lede.'$DEVICE'.img.zst.0{#} > /dev/null'
|
||||
zstdmt -c --long lede.img | split --numeric=1 -b 2000m - lede.$DEVICE.img.zst.
|
||||
for f in *img.zst*
|
||||
do
|
||||
while true; do curl --data-binary @$f -H "$AUTH" -H 'Content-Type: application/octet-stream' "https://uploads.$cache_path/$cache_repo_id/assets?name=$f" && break || true; done
|
||||
done
|
||||
#for f in *img.zst*
|
||||
#do
|
||||
# while true; do curl --data-binary @$f -H "$AUTH" -H 'Content-Type: application/octet-stream' "https://uploads.$cache_path/$cache_repo_id/assets?name=$f" && break || true; done
|
||||
#done
|
||||
ls *img.zst* | parallel --wc 'while true; do curl -T {} -H "$AUTH" -H "Content-Type: application/octet-stream" "https://uploads.$cache_path/$cache_repo_id/assets?name={}" && break || true; done'
|
||||
|
||||
- name: Send tg notification
|
||||
uses: appleboy/telegram-action@master
|
||||
|
||||
Reference in New Issue
Block a user