From: Bastian Dehn Date: Thu, 26 Dec 2024 08:52:33 +0000 (+0100) Subject: change builder always create container X-Git-Tag: v1.0.14^2~4 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=8f06a960f098ecbcb39a9ddd0ddcb4352bcfd9ed;p=sane-kds-s2000w-net.git change builder always create container --- diff --git a/builder/build-in-container b/builder/build-in-container index 79b40cf..de8e9b6 100755 --- a/builder/build-in-container +++ b/builder/build-in-container @@ -2,16 +2,10 @@ main() { - imageExists=$(podman image ls | grep sane-kds-s2000w-net-builder-bookworm) - if [ -z "$imageExists" ]; then - podman build -f builder/Containerfile-bookworm -t sane-kds-s2000w-net-builder-bookworm - fi + podman build -f builder/Containerfile-bookworm -t sane-kds-s2000w-net-builder-bookworm podman run -tiv ./:/app --rm sane-kds-s2000w-net-builder-bookworm - imageExists=$(podman image ls | grep sane-kds-s2000w-net-builder-trixie) - if [ -z "$imageExists" ]; then - podman build -f builder/Containerfile-trixie -t sane-kds-s2000w-net-builder-trixie - fi + podman build -f builder/Containerfile-trixie -t sane-kds-s2000w-net-builder-trixie podman run -tiv ./:/app --rm sane-kds-s2000w-net-builder-trixie }