Files
mailu/build.sh
2021-04-26 18:25:46 +02:00

14 lines
303 B
Bash
Executable File

#!/bin/bash -e
TAG="1.5-$(date +%Y%m%d)"
find . -name Dockerfile | while read i; do
dir=$(dirname $i)
pushd ${dir} >/dev/null
image="genunix/mailu-$(basename $dir):${TAG}"
echo "[INFO] Building ${image}"
docker build -t ${image} .
docker push ${image}
popd >/dev/null
done