shadow/share/container-build.sh
Iker Pedrosa 300d6ef45c CI: script for local container build
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2023-03-26 12:45:34 -05:00

19 lines
332 B
Bash
Executable File

#! /bin/bash
#
# SPDX-FileCopyrightText: 2023, Iker Pedrosa <ipedrosa@redhat.com>
#
# 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