From e76ec1ec523e199cf08acbcfbadba00cbe010e38 Mon Sep 17 00:00:00 2001 From: pi-farm Date: Sat, 27 Sep 2025 22:50:18 +0200 Subject: [PATCH] add function get_registry_url --- scripts/image-builder.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/image-builder.sh b/scripts/image-builder.sh index cd7a4b9..aaa53e6 100755 --- a/scripts/image-builder.sh +++ b/scripts/image-builder.sh @@ -609,6 +609,17 @@ load_project_config() { auto_subversion=$(grep "^auto_subversion=" "$config_file" | cut -d= -f2 || echo "no") } +# Registry-URL auslesen +get_registry_url() { + local reg_name=$1 + local reg_file="$REGISTRY_CONFIG_DIR/$reg_name/config-file" + if [[ -f "$reg_file" ]]; then + grep '^url=' "$reg_file" | cut -d= -f2 + else + echo "$reg_name" + fi +} + # Image bauen build_image() { local project=$1