deployerbot: upgrade before deploys

This commit is contained in:
Motiejus Jakštys 2024-02-25 23:49:59 +02:00
parent c45d179c41
commit 7df06680e6
1 changed files with 2 additions and 3 deletions

View File

@ -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
'';
};