ci: Suggested fixes

This commit is contained in:
kat witch 2021-05-19 11:58:42 +01:00
parent e47c7c154c
commit 68edcfddcd
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -28,11 +28,12 @@ with lib; {
echo "$OPENSSH_PRIVATE_KEY" > ~/.ssh/id_rsa echo "$OPENSSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 0600 ~/.ssh/id_rsa chmod 0600 ~/.ssh/id_rsa
for source in ${toString (attrNames sources)}; do for source in ${toString (attrNames sources)}; do
nix run -f . pkgs.niv -c niv update $source || true 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") | ${cachix}/bin/cachix push kittywitch
fi
done done
cachix push kittywitch $(nix eval --raw -f ../. sourceCache) cachix push kittywitch $(nix eval --raw -f ../. sourceCache)
if git status --porcelain | grep -qF nix/sources.json ; then if git status --porcelain | grep -qF nix/sources.json; then
if nix build -Lf . hosts.{athame,yule,samhain}.config.system.build.toplevel; then if nix build -Lf . hosts.{athame,yule,samhain}.config.system.build.toplevel; then
git add nix/sources.json git add nix/sources.json
export GIT_{COMMITTER,AUTHOR}_EMAIL=kat@kittywit.ch export GIT_{COMMITTER,AUTHOR}_EMAIL=kat@kittywit.ch