mirror of
				https://github.com/DaoCloud/public-image-mirror.git
				synced 2025-10-31 13:49:22 +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" | ||||
|           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) | ||||
|          | ||||
|   | ||||
		Reference in New Issue
	
	Block a user