deployerbot: upgrade before deploys

This commit is contained in:
Motiejus Jakštys 2024-02-25 23:49:59 +02:00
parent c45d179c41
commit 7df06680e6

View File

@ -84,6 +84,8 @@ in {
fi fi
nix flake update --accept-flake-config --commit-lock-file nix flake update --accept-flake-config --commit-lock-file
nix flake check
git push origin main
${pkgs.deploy-rs.deploy-rs}/bin/deploy \ ${pkgs.deploy-rs.deploy-rs}/bin/deploy \
--ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \ --ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \
@ -96,9 +98,6 @@ in {
EXITCODE=0 EXITCODE=0
${lib.concatLines (map mkOptional cfg.deployIfPresent)} ${lib.concatLines (map mkOptional cfg.deployIfPresent)}
# done
git push origin main
exit $EXITCODE exit $EXITCODE
''; '';
}; };