Update sync-image.yml
This commit is contained in:
parent
60ab132890
commit
ebae3dedfc
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue