From 43fad9897d62688c91e3e32cbda021482738d694 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 4 Dec 2024 16:40:39 +0100 Subject: [PATCH] fix: [compose-core] allow to build image if not found on ``$COMPOSE_DOCKER_REGISTRY`` --- bin/compose-core | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index f893238..05d5a93 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -1870,10 +1870,7 @@ service_ensure_image_ready() { ## Can we pull it ? Let's check on $COMPOSE_DOCKER_REGISTRY if [ "$COMPOSE_ACTION" != "build" ] && [ -n "$COMPOSE_DOCKER_REGISTRY" ]; then - img=$(cache:image:registry:get "$charm" "$hash" "$service") || { - err "Failed to get image '$charm_image_name:$hash' from registry for ${DARKYELLOW}$service${NORMAL}." - return 1 - } + img=$(cache:image:registry:get "$charm" "$hash" "$service" 2>/dev/null) [ -n "$img" ] && { printf "%s" "$img" | tee "$cache_file" return $?