Deploy files conditionally based on checksum

By default rsync uses modification time and file size which is effectively
reduced to just file size due to using Nix. This is not enough to work
reliably e.g. on changes to a single letter or fixed-format strings.
This commit is contained in:
Simon Bruder 2022-01-22 22:11:03 +01:00
parent fdaa9e2e7d
commit 412f7b2d74
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -19,4 +19,4 @@ case "$target" in
esac esac
nix build -o "result-${target}" -L ".#${nix_package}" nix build -o "result-${target}" -L ".#${nix_package}"
rsync -varzLP --delete --delay-updates "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}" rsync -vacrzLP --delete --delay-updates "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}"