Skip to content

Sync Runner

Sync Runner #796

Workflow file for this run

name: Sync Runner
on:
schedule:
- cron: "*/10 * * * *"
workflow_dispatch:
jobs:
sync-images:
runs-on: ubuntu-latest
if: github.repository == 'DaoCloud/public-image-mirror'
steps:
- name: Set up crproxy
run: |
wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.135/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy
- name: Sync Runner
run: |
/usr/local/bin/crproxy cluster runner ${{ secrets.STORAGE_ARGS }} --user '${{ secrets.OCI_USER }}' --queue-token '${{ secrets.QUEUE_TOKEN }}' --queue-url https://queue.m.daocloud.io/apis/v1 --duration 1h --retry=3 --retry-interval=2s