fixes in deployment script
This commit is contained in:
parent
61d8617519
commit
bff8cef210
@ -58,14 +58,21 @@
|
|||||||
${pkgs.git}/bin/git reset --hard origin/main
|
${pkgs.git}/bin/git reset --hard origin/main
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH=$PATH:${pkgs.git}/bin
|
export PATH=$PATH:${pkgs.git}/bin:${pkgs.nix}/bin
|
||||||
${pkgs.nix}/bin/nix flake update --accept-flake-config --commit-lock-file
|
${pkgs.nix}/bin/nix flake update --accept-flake-config --commit-lock-file
|
||||||
${pkgs.git}/bin/git push origin main
|
${pkgs.git}/bin/git push origin main
|
||||||
|
|
||||||
exec ${pkgs.nix}/bin/nix run .#deploy-rs ${deployDerivations}
|
export PATH=$PATH:${pkgs.openssh}/bin
|
||||||
|
exec ${pkgs.nix}/bin/nix run .#deploy-rs -- ${deployDerivations}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#systemd.timers.updaterbot = {
|
||||||
|
# description = "updaterbot timer";
|
||||||
|
# wantedBy = ["timers.target"];
|
||||||
|
# timerConfig.OnCalendar = "";
|
||||||
|
#};
|
||||||
|
|
||||||
mj.base.unitstatus.units = ["updaterbot"];
|
mj.base.unitstatus.units = ["updaterbot"];
|
||||||
|
|
||||||
nix.settings.trusted-users = ["updaterbot"];
|
nix.settings.trusted-users = ["updaterbot"];
|
||||||
|
Loading…
Reference in New Issue
Block a user