:-'Generic Commit'
Some checks failed
Gitea Actions Demo / Build (push) Failing after 15s

This commit is contained in:
Your Name 2025-05-30 00:28:07 +12:00
parent 8f82b12133
commit d64189d859

View File

@ -8,14 +8,20 @@ function build_image() {
docker build -t "$image_name:latest" -f "$dockerfile" .
}
# iterate through the docker files in format Dockerfile.IMAGE_NAME
for dockerfile in Dockerfile.*
do
pids=()
for dockerfile in Dockerfile.*; do
(
build_image "$dockerfile"
) &
pids+=($!)
done
wait
fail=0
for pid in "${pids[@]}"; do
wait "$pid" || fail=1
done
if (( fail )); then
echo "One or more builds failed."
exit 1
fi