Allow building of multiple tags from a single run

This commit is contained in:
Lloyd Watkin 2014-11-15 15:15:58 +00:00
parent 1d8b665909
commit e4cf4e52de

View file

@ -13,8 +13,16 @@ fi
echo "Starting build..."
cp $1 ./prosody.deb
docker build -t prosody/prosody:$2 .
for i in "${@:3}"; do
echo "Also building tag $i"
docker build -t prosody/prosody:$i .
done
docker push prosody/prosody
echo "Cleaning up..."
docker rmi prosody/prosody:$2
rm ./prosody.deb
for i in "${@:3}"; do
echo "Also cleaning tag $i"
docker rmi prosody/prosody:$i
done
rm ./prosody.deb