mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
ci: Fixed niv-cron erroring on repo unavailability, I curse those with
unreliable infrastructure
This commit is contained in:
parent
e46773cf57
commit
dfc6d4f4e2
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue