Update sync-image.yml

This commit is contained in:
Shiming Zhang 2025-02-09 17:04:14 +08:00 committed by GitHub
parent 60ab132890
commit ebae3dedfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -45,10 +45,11 @@ jobs:
gh issue close ${{ github.event.issue.number }} --reason "not planned"
exit 1
fi
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
if [[ "${ORIGIN_IMAGE}" =~ ^docker.io/ ]]; then
ORIGIN_IMAGE="registry-1.${ORIGIN_IMAGE}"
fi
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
echo "sync_image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
- name: Set up crproxy
run: |
@ -62,7 +63,7 @@ jobs:
-H 'Authorization: Bearer ${{ secrets.QUEUE_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{
"content": "${{ steps.get-image.outputs.image }}",
"content": "${{ steps.get-image.outputs.sync_image }}",
"priority": 10
}' | jq -r .id)