Allow building of multiple tags from a single run
This commit is contained in:
parent
1d8b665909
commit
e4cf4e52de
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue