add msmtp support

This commit is contained in:
Pau Capó 2023-11-20 20:31:16 +01:00
parent 6e9c884375
commit f33835ec24
5 changed files with 16 additions and 9 deletions

View file

@ -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