14 lines
303 B
Bash
Executable File
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
|