This commit is contained in:
parent
411876c1ef
commit
ed9506de8b
7
build.sh
7
build.sh
@ -2,10 +2,15 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
function die() {
|
||||
echo "$1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
function build_image() {
|
||||
local dockerfile="$1"
|
||||
local image_name="${dockerfile//Dockerfile./}"
|
||||
docker build -t "$image_name:latest" -f "$dockerfile" .
|
||||
docker build -t "$image_name:latest" -f "$dockerfile" . || die "Failed to build $image_name"
|
||||
}
|
||||
|
||||
pids=()
|
||||
|
Loading…
x
Reference in New Issue
Block a user