deployerbot: upgrade before deploys
This commit is contained in:
parent
c45d179c41
commit
7df06680e6
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue