From afd7743f37d51ed881bd18ff116b0bb230d898f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 30 Jul 2023 08:53:19 +0300 Subject: [PATCH] deployerbot: push after a successful deploy --- modules/services/deployerbot/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix index a7eb4f9..9113706 100644 --- a/modules/services/deployerbot/default.nix +++ b/modules/services/deployerbot/default.nix @@ -58,14 +58,17 @@ OLD_PATH=$PATH export PATH=$PATH:${pkgs.git}/bin ${pkgs.nix}/bin/nix flake update --accept-flake-config --commit-lock-file - ${pkgs.git}/bin/git push origin main export PATH=$OLD_PATH + OLD_PATH=$PATH export PATH=$PATH:${pkgs.git}/bin:${pkgs.openssh}/bin:${pkgs.nix}/bin exec ${pkgs.nix}/bin/nix run .#deploy-rs -- \ --ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \ --ssh-user=deployerbot-follower \ --targets ${deployDerivationsStr} + export PATH=$OLD_PATH + + ${pkgs.git}/bin/git push origin main ''; };