This commit is contained in:
kat witch 2021-05-20 00:03:03 +01:00
commit 67f749c1dd
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -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