add msmtp support
This commit is contained in:
parent
6e9c884375
commit
f33835ec24
5 changed files with 16 additions and 9 deletions
14
build.sh
14
build.sh
|
|
@ -6,12 +6,14 @@ docker login "http://git.paucapo.com/"
|
|||
|
||||
for dockerfile in $SCRIPT_DIR/*:*; do
|
||||
package=`basename "$dockerfile"`
|
||||
echo "Building $package"
|
||||
docker build \
|
||||
-f "$dockerfile" \
|
||||
-t "git.paucapo.com/server/$package" \
|
||||
"$SCRIPT_DIR"
|
||||
docker push "git.paucapo.com/server/$package"
|
||||
if [[ "$1" == "" || "$1" == "$package" ]]; then
|
||||
echo "Building $package"
|
||||
docker build \
|
||||
-f "$dockerfile" \
|
||||
-t "git.paucapo.com/server/$package" \
|
||||
"$SCRIPT_DIR"
|
||||
docker push "git.paucapo.com/server/$package"
|
||||
fi
|
||||
done
|
||||
|
||||
sudo docker image prune -a --force
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue