enable transfer of built website to multiple hosts
continuous-integration/drone/push Build is passing Details

Max Mehl 2021-10-12 16:52:42 +02:00
parent e702d251af
commit d3b25e244c
Signed by: max.mehl
GPG Key ID: 2704E4AB371E2E92
1 changed files with 6 additions and 1 deletions

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"
} | t_logstatus stagesync
date +%s > "$(logname end_time)"