Bump crproxy

This commit is contained in:
Shiming Zhang
2025-01-13 15:58:32 +08:00
parent 6888e02012
commit 227ce5079d
5 changed files with 96 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ name: Sync
on:
schedule:
- cron: "1 16 * * *"
- cron: "1 0 * * *"
workflow_dispatch:
@@ -16,9 +16,12 @@ jobs:
- name: Set up crproxy
run: |
wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.108/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy
wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.109/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy
- name: Deep Sync Images to OSS&OBS
run: |
/usr/local/bin/crproxy sync --max-warn 100 ${{ secrets.STORAGE_ARGS }} --list-from-file ./mirror-deep.txt --deep
- name: Sync Images to OSS&OBS
run: |
ORIGIN_IMAGE=$(echo "${MESSAGE}" | grep SYNC | awk '{print $2}' | head -n 1 | sed "s/\r//g")
/usr/local/bin/crproxy sync --max-warn 100 ${{ secrets.STORAGE_ARGS }} --list-from-file ./mirror.txt
/usr/local/bin/crproxy sync --max-warn 100 ${{ secrets.STORAGE_ARGS }} --list-from-file ./mirror.txt --quic