add function get_registry_url

This commit is contained in:
2025-09-27 22:50:18 +02:00
parent 9bfc3b26e3
commit e76ec1ec52

View File

@@ -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