From fc8305c7d20afb1e9372194d75ddda987768d398 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Mon, 10 Feb 2025 10:02:13 +0800 Subject: [PATCH] Fix target sync image --- .github/workflows/sync-image.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/sync-image.yml b/.github/workflows/sync-image.yml index 1bca257..5868be5 100644 --- a/.github/workflows/sync-image.yml +++ b/.github/workflows/sync-image.yml @@ -49,6 +49,10 @@ jobs: if [[ "${ORIGIN_IMAGE}" =~ ^docker.io/ ]]; then ORIGIN_IMAGE="registry-1.${ORIGIN_IMAGE}" 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 - name: Set up crproxy