moth/build.sh

15 lines
387 B
Bash
Raw Normal View History

#! /bin/sh
set -e
2018-10-02 19:21:54 -06:00
read version < VERSION
cd $(dirname $0)
for img in moth moth-devel; do
echo "==== $img"
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-10-02 19:26:40 -06:00
[ "$1" = "-push" ] && docker push dirtbags/$img:$version && docker push dirtbags/$img:latest
done
2018-10-02 19:21:54 -06:00
exit 0