mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-09-20 02:19:21 +08:00
Update sync-image.yml
This commit is contained in:
5
.github/workflows/sync-image.yml
vendored
5
.github/workflows/sync-image.yml
vendored
@@ -45,10 +45,11 @@ jobs:
|
|||||||
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
if [[ "${ORIGIN_IMAGE}" =~ ^docker.io/ ]]; then
|
if [[ "${ORIGIN_IMAGE}" =~ ^docker.io/ ]]; then
|
||||||
ORIGIN_IMAGE="registry-1.${ORIGIN_IMAGE}"
|
ORIGIN_IMAGE="registry-1.${ORIGIN_IMAGE}"
|
||||||
fi
|
fi
|
||||||
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
echo "sync_image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set up crproxy
|
- name: Set up crproxy
|
||||||
run: |
|
run: |
|
||||||
@@ -62,7 +63,7 @@ jobs:
|
|||||||
-H 'Authorization: Bearer ${{ secrets.QUEUE_TOKEN }}' \
|
-H 'Authorization: Bearer ${{ secrets.QUEUE_TOKEN }}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
"content": "${{ steps.get-image.outputs.image }}",
|
"content": "${{ steps.get-image.outputs.sync_image }}",
|
||||||
"priority": 10
|
"priority": 10
|
||||||
}' | jq -r .id)
|
}' | jq -r .id)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user