From 9c4c4304ffee662bbeaf56158a43c841642fa4fd Mon Sep 17 00:00:00 2001 From: zuoxuesong-worker Date: Thu, 30 Oct 2025 11:12:18 +0800 Subject: [PATCH] bugfix: fix when init registry with other host then push none image (#2832) Signed-off-by: xuesongzuo@yunify.com --- builtin/core/roles/image-registry/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/core/roles/image-registry/tasks/main.yaml b/builtin/core/roles/image-registry/tasks/main.yaml index 0a412d05..32313911 100644 --- a/builtin/core/roles/image-registry/tasks/main.yaml +++ b/builtin/core/roles/image-registry/tasks/main.yaml @@ -4,7 +4,7 @@ when: .image_registry.type | eq "harbor" command: | # Traverse first-level subdirectories in images_dir, skipping 'blobs' - for registry_dir in {{ .image_registry.images_dir }}*; do + for registry_dir in {{ .binary_dir }}/images/*; do if [ ! -d "$registry_dir" ] || [ "$(basename "$registry_dir")" = "blobs" ]; then continue fi