]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
add builder prefix develop
authorBastian Dehn <hhaalo@arcor.de>
Sun, 27 Sep 2026 17:18:47 +0000 (19:18 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 27 Sep 2026 17:21:46 +0000 (19:21 +0200)
builder/builder

index 1fb54512d7de95d9d425ed54089d12d1927286bc..191328687fb2c48992f0c6b58562026fc044e04b 100755 (executable)
@@ -12,17 +12,19 @@ create_containerfile()
 
 build_container_image()
 {
-       local distro_postfix="$1"
+       local builder_prefix="$1"
+       local distro_postfix="$2"
 
        podman build \
-               --tag "feierabend-builder:$distro_postfix" \
+               --tag "$builder_prefix-builder:$distro_postfix" \
                --file "build/Containerfile-$distro_postfix" \
                || return $?
 }
 
-run_build_container()
+run_builder_container()
 {
-       local distro_postfix="$1"
+       local builder_prefix="$1"
+       local distro_postfix="$2"
 
        podman run \
                --tty \
@@ -31,12 +33,13 @@ run_build_container()
                --env SOLL_HOUR="$SOLL_HOUR" \
                --env SOLL_MINUTES="$SOLL_MINUTES" \
                --env BEFORE_AUG_2026="$BEFORE_AUG_2026" \
-               "feierabend-builder:$distro_postfix" \
+               "$builder_prefix-builder:$distro_postfix" \
                || return $?
 }
 
 main()
 {
+       local builder_prefix="feierabend"
        local distros=${DISTROS:="debian:oldstable-slim
                debian:stable-slim
                debian:testing-slim
@@ -51,8 +54,8 @@ main()
        for distro in $distros; do
                local distro_postfix=${distro/:/-}
                create_containerfile "$distro" "$distro_postfix" || return $?
-               build_container_image "$distro_postfix" || return $?
-               run_build_container "$distro_postfix" || return $?
+               build_container_image "$builder_prefix" "$distro_postfix" || return $?
+               run_builder_container "$builder_prefix" "$distro_postfix" || return $?
        done
 }