2018-09-20 10:32:12 -06:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-10-02 19:21:54 -06:00
|
|
|
read version < VERSION
|
2018-09-20 10:32:12 -06:00
|
|
|
|
2018-09-27 17:12:29 -06:00
|
|
|
cd $(dirname $0)
|
2018-09-20 10:32:12 -06:00
|
|
|
for img in moth moth-devel; do
|
|
|
|
echo "==== $img"
|
2018-09-26 12:32:18 -06:00
|
|
|
sudo docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy --tag dirtbags/$img --tag dirtbags/$img:$version -f Dockerfile.$img .
|
2018-09-22 21:38:32 -06:00
|
|
|
[ "$1" = "-push" ] && docker push dirtbags/$img:$version && docker push dirtbags/$img
|
2018-09-20 10:32:12 -06:00
|
|
|
done
|
2018-10-02 19:21:54 -06:00
|
|
|
|
|
|
|
exit 0
|