From 7df06680e647c5da196a4d0bbc874e641e3eb73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 25 Feb 2024 23:49:59 +0200 Subject: [PATCH] deployerbot: upgrade before deploys --- modules/services/deployerbot/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix index 22ab094..f8ed8d1 100644 --- a/modules/services/deployerbot/default.nix +++ b/modules/services/deployerbot/default.nix @@ -84,6 +84,8 @@ in { fi nix flake update --accept-flake-config --commit-lock-file + nix flake check + git push origin main ${pkgs.deploy-rs.deploy-rs}/bin/deploy \ --ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \ @@ -96,9 +98,6 @@ in { EXITCODE=0 ${lib.concatLines (map mkOptional cfg.deployIfPresent)} - # done - git push origin main - exit $EXITCODE ''; };