add post build hook script

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-16 16:05:54 +01:00
parent 2fa8a6f72b
commit 8544e09f48
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

5
scripts/post-build-hook Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
set -euf
export IFS=' '
/nix/var/nix/profiles/default/bin/nix store sign --key-file /home/runner/cache.key $DRV_PATH
/nix/var/nix/profiles/default/bin/nix copy --to 's3://cache-chir-rs?scheme=https&endpoint=s3.us-west-000.backblazeb2.com&secret-key=/home/runner/cache.key&multipart-upload=true&compression=zstd&compression-level=15' $DRV_PATH