ci: Fixed niv-cron erroring on repo unavailability, I curse those with

unreliable infrastructure
This commit is contained in:
kat witch 2021-05-18 08:07:16 +01:00
parent e46773cf57
commit dfc6d4f4e2
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -25,7 +25,9 @@ with lib; {
mkdir ~/.ssh
echo "$OPENSSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 0600 ~/.ssh/id_rsa
nix run -f . pkgs.niv -c niv update
for source in $(cat nix/sources.json | jq -r 'keys[]'); do
nix run -f . pkgs.niv -c niv update $source 2>&1 >/dev/null
done
if git status --porcelain | grep -qF nix/sources.json ; then
if nix build -Lf . hosts.{athame,yule,samhain}.config.system.build.toplevel; then
git add nix/sources.json