mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-22 10:26:07 +08:00
Move crproxy to opencidn
This commit is contained in:
6
.github/workflows/sync-image.yml
vendored
6
.github/workflows/sync-image.yml
vendored
@@ -50,9 +50,9 @@ jobs:
|
|||||||
SYNC_IMAGE="$(./hack/real-image.sh "${ORIGIN_IMAGE}")"
|
SYNC_IMAGE="$(./hack/real-image.sh "${ORIGIN_IMAGE}")"
|
||||||
echo "sync_image=${SYNC_IMAGE}" >> $GITHUB_OUTPUT
|
echo "sync_image=${SYNC_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set up crproxy
|
- name: Set up runner
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.174/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy
|
wget https://github.com/OpenCIDN/OpenCIDN/releases/download/v0.0.9/runner_linux_amd64 -O /usr/local/bin/runner && chmod +x /usr/local/bin/runner
|
||||||
|
|
||||||
- name: Create message to queue
|
- name: Create message to queue
|
||||||
id: get-message
|
id: get-message
|
||||||
@@ -95,6 +95,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
/usr/local/bin/crproxy cluster runner ${{ secrets.NEW_STORAGE_ARGS }} --user '${{ secrets.OCI_USER }}' --queue-token '${{ secrets.QUEUE_TOKEN }}' --queue-url https://queue.m.daocloud.io/apis/v1 --duration 10s --retry=3 --retry-interval=2s &
|
/usr/local/bin/runner ${{ secrets.NEW_STORAGE_ARGS }} --user '${{ secrets.OCI_USER }}' --queue-token '${{ secrets.QUEUE_TOKEN }}' --queue-url https://queue.m.daocloud.io/apis/v1 --duration 10s --retry=3 --retry-interval=2s &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
6
.github/workflows/sync-runner.yml
vendored
6
.github/workflows/sync-runner.yml
vendored
@@ -11,10 +11,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'DaoCloud/public-image-mirror'
|
if: github.repository == 'DaoCloud/public-image-mirror'
|
||||||
steps:
|
steps:
|
||||||
- name: Set up crproxy
|
- name: Set up runner
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/DaoCloud/crproxy/releases/download/v0.13.0-alpha.174/crproxy_linux_amd64 -O /usr/local/bin/crproxy && chmod +x /usr/local/bin/crproxy
|
wget https://github.com/OpenCIDN/OpenCIDN/releases/download/v0.0.9/runner_linux_amd64 -O /usr/local/bin/runner && chmod +x /usr/local/bin/runner
|
||||||
|
|
||||||
- name: Sync Runner
|
- name: Sync Runner
|
||||||
run: |
|
run: |
|
||||||
/usr/local/bin/crproxy cluster runner ${{ secrets.NEW_STORAGE_ARGS }} --user '${{ secrets.OCI_USER }}' --queue-token '${{ secrets.QUEUE_TOKEN }}' --queue-url https://queue.m.daocloud.io/apis/v1 --duration 2h --retry=3 --retry-interval=2s
|
/usr/local/bin/runner ${{ secrets.NEW_STORAGE_ARGS }} --user '${{ secrets.OCI_USER }}' --queue-token '${{ secrets.QUEUE_TOKEN }}' --queue-url https://queue.m.daocloud.io/apis/v1 --duration 2h --retry=3 --retry-interval=2s
|
||||||
|
Reference in New Issue
Block a user