mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
ci: Suggested fixes
This commit is contained in:
parent
e47c7c154c
commit
68edcfddcd
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue