edit function build_image

This commit is contained in:
2025-09-28 12:32:54 +02:00
parent 159f2284e5
commit 0a19bf49d4

View File

@@ -664,7 +664,7 @@ build_image() {
echo "====================================" | tee -a "$logfile" echo "====================================" | tee -a "$logfile"
# Architekturen-Array vorbereiten # Architekturen-Array vorbereiten
arch_array=($architectures) read -r -a arch_array <<< "$architectures"
platforms="" platforms=""
for arch in "${arch_array[@]}"; do for arch in "${arch_array[@]}"; do
case "$arch" in case "$arch" in
@@ -677,13 +677,13 @@ build_image() {
done done
platforms="${platforms%,}" platforms="${platforms%,}"
echo "DEBUG platforms='$platforms'" | tee -a "$logfile"
if [[ -z "$platforms" ]]; then if [[ -z "$platforms" ]]; then
echo "Keine Architektur ausgewählt. Build abgebrochen." | tee -a "$logfile" echo "Keine Architektur ausgewählt. Build abgebrochen." | tee -a "$logfile"
return 1 return 1
fi fi
echo "DEBUG platforms='$platforms'" | tee -a "$logfile"
# Tags für alle Registries vorbereiten # Tags für alle Registries vorbereiten
IFS=',' read -ra reg_array <<< "$registry" IFS=',' read -ra reg_array <<< "$registry"
tags=() tags=()