:-'Generic Commit'
All checks were successful
Gitea Actions Demo / Build (push) Successful in 8s

This commit is contained in:
Your Name 2025-05-30 00:00:34 +12:00
parent 3d3bd83fa1
commit 8e397d7b55

View File

@ -2,13 +2,20 @@
set -euo pipefail
function build_image() {
local dockerfile="$1"
local image_name="${dockerfile//Dockerfile./}"
docker build -t "$image_name:latest" -f "$dockerfile" .
}
# iterate through the docker files in format Dockerfile.IMAGE_NAME
for dockerfile in Dockerfile.*
do
# get the image name from the dockerfile
image_name="${dockerfile//Dockerfile./}"
# build the gitea.jde.nz/public/bb64:debian-curl docker image
docker build -t "$image_name:latest" -f "$dockerfile" .
(
build_image "$dockerfile"
) &
done
wait