From: Iker Pedrosa Date: Tue, 14 Mar 2023 11:23:50 +0000 (+0100) Subject: CI: script for local container build X-Git-Tag: 4.14.0-rc1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=300d6ef45ced3624e61fe0a67690032a7891a3e1;p=thirdparty%2Fshadow.git CI: script for local container build Signed-off-by: Iker Pedrosa --- diff --git a/share/container-build.sh b/share/container-build.sh new file mode 100755 index 000000000..a4e28e40c --- /dev/null +++ b/share/container-build.sh @@ -0,0 +1,18 @@ +#! /bin/bash + +# +# SPDX-FileCopyrightText: 2023, Iker Pedrosa +# +# SPDX-License-Identifier: BSD-3-Clause +# + +for FILE in share/containers/*; do + IFS='/' + read -ra ADDR <<< "$FILE" + IFS='.' + read -ra ADDR <<< "${ADDR[2]}" + IFS='' + if ! docker build -f $FILE . --output build-out/${ADDR[0]}; then + exit + fi +done