mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-10-29 20:49:22 +08:00
Fix target sync image
This commit is contained in:
4
.github/workflows/sync-image.yml
vendored
4
.github/workflows/sync-image.yml
vendored
@@ -49,6 +49,10 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
|
if [[ "${ORIGIN_IMAGE}" =~ ^registry-1\.docker\.io/[^/]+$ ]]; then
|
||||||
|
ORIGIN_IMAGE="registry-1.docker.io/library/${ORIGIN_IMAGE#registry-1.docker.io/}"
|
||||||
|
fi
|
||||||
echo "sync_image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
echo "sync_image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set up crproxy
|
- name: Set up crproxy
|
||||||
|
|||||||
Reference in New Issue
Block a user