diff --git a/ci/niv-cron.nix b/ci/niv-cron.nix index cad058ac..6a19438c 100644 --- a/ci/niv-cron.nix +++ b/ci/niv-cron.nix @@ -41,7 +41,7 @@ with lib; { ci.command { name = "niv-update-build"; displayName = "niv update build"; - environment = [ "OPENSSH_PRIVATE_KEY" "CACHIX_SIGNING_KEY" ]; + environment = [ "OPENSSH_PRIVATE_KEY" "CACHIX_SIGNING_KEY" "GITHUB_REF" ]; command = '' if [[ -n $OPENSSH_PRIVATE_KEY ]]; then mkdir ~/.ssh @@ -73,9 +73,9 @@ with lib; { if nix build -Lf . hosts.{athame,yule,samhain}.config.system.build.toplevel; then if [[ -n $CACHIX_SIGNING_KEY ]]; then nix build --no-link -Lf . sourceCache.all - cachix push kittywitch $(nix eval -f . sourceCache.allStr) + cachix push kittywitch $(nix eval --raw -f . sourceCache.allStr) - cachix push kittywitch $(readlink result*/) & + cachix push kittywitch result*/ & CACHIX_PUSH=$! fi if [[ -n $OPENSSH_PRIVATE_KEY ]]; then