enable transfer of built website to multiple hosts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Max Mehl 2021-10-12 16:52:42 +02:00
parent e702d251af
commit d3b25e244c
Signed by: max.mehl
GPG Key ID: 2704E4AB371E2E92

View File

@ -70,7 +70,12 @@ buildrun(){
# symlinks which we copy while rsyncing. These messages are issued even if
# the files have not changed and clutter up the output, so we filter them
# out.
rsync -av --copy-unsafe-links --del "$stagedir/" "$target/" | grep -v "copying unsafe symlink" | t_logstatus stagesync
{
for destination in ${target//,/ }; do
echo "Syncing files to $(echo "$destination" | grep -Po "(?<=@)[^:]+")"
rsync -av --copy-unsafe-links --del "$stagedir/" "$destination/" | grep -v "copying unsafe symlink"
done
} | t_logstatus stagesync
fi
date +%s > "$(logname end_time)"