mirror of https://github.com/dirtbags/moth.git
13 lines
377 B
Bash
Executable File
13 lines
377 B
Bash
Executable File
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
version=$(date +%Y%m%d%H%M)
|
|
|
|
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 .
|
|
[ "$1" = "-push" ] && docker push dirtbags/$img:$version && docker push dirtbags/$img
|
|
done
|