mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
ci: Use outPath
This commit is contained in:
parent
68edcfddcd
commit
69189e80be
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ with lib; {
|
|||
chmod 0600 ~/.ssh/id_rsa
|
||||
for source in ${toString (attrNames sources)}; do
|
||||
if nix run -f . pkgs.niv -c niv update $source; then
|
||||
echo $(nix eval --raw "(import ./.).sources.$source") | ${cachix}/bin/cachix push kittywitch
|
||||
echo $(nix eval --raw "(import ./.).sources.$source.outPath") | ${cachix}/bin/cachix push kittywitch
|
||||
fi
|
||||
done
|
||||
cachix push kittywitch $(nix eval --raw -f ../. sourceCache)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ rec {
|
|||
|
||||
runners = import ./runners.nix { inherit lib; inherit (deploy) target; };
|
||||
|
||||
sourceCache = toString (lib.mapAttrsToList(sourceName: value: "${value}") (removeAttrs (import sources.nix-hexchen {}).sources [ "__functor" ]));
|
||||
sourceCache = toString (lib.mapAttrsToList(sourceName: value: value.outPath) (removeAttrs (import sources.nix-hexchen {}).sources [ "__functor" ]));
|
||||
|
||||
deploy = import ./lib/deploy.nix {
|
||||
inherit pkgs sources;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue