fix platforms
This commit is contained in:
@@ -665,21 +665,25 @@ build_image() {
|
||||
echo "====================================" >> "$logfile"
|
||||
|
||||
# Plattformen zusammenstellen
|
||||
local platforms=""
|
||||
# Architekturen in Docker-Platform-Syntax übersetzen
|
||||
platforms=""
|
||||
for arch in $architectures; do
|
||||
case "$arch" in
|
||||
amd64) platforms+="linux/amd64," ;;
|
||||
arm64) platforms+="linux/arm64," ;;
|
||||
armhf) platforms+="linux/arm/v7," ;;
|
||||
x86) platforms+="linux/386," ;;
|
||||
*) echo "WARNUNG: Unbekannte Architektur '$arch' wird ignoriert." >> "$logfile" ;;
|
||||
esac
|
||||
done
|
||||
platforms=${platforms%,} # letztes Komma entfernen
|
||||
echo "DEBUG architectures='$architectures'" >> "$logfile"
|
||||
|
||||
# Letztes Komma abschneiden
|
||||
platforms="${platforms%,}"
|
||||
DEBUG architectures='amd64 arm64 armhf x86'
|
||||
|
||||
if [[ -z "$platforms" ]]; then
|
||||
whiptail --msgbox "Keine Architekturen ausgewählt. Build abgebrochen." 10 60
|
||||
return
|
||||
echo "Keine Architektur ausgewählt. Build abgebrochen." | tee -a "$logfile"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Tags für alle registries zusammenstellen
|
||||
|
||||
Reference in New Issue
Block a user