Skip to content

Commit

Permalink
Allow building multiple images.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jan 1, 2020
1 parent 0c07f3d commit 160517d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ run() {
fi
}

if [ -z "${1:-}" ]; then
if [ -z "${@:-}" ]; then
for t in Dockerfile.*; do
run "${t##Dockerfile.}"
done
else
run "${1}"
for image in "${@}"; do
run "${image}"
done
fi

0 comments on commit 160517d

Please sign in to comment.