deployerbot: optionals don't fail pushes

This commit is contained in:
Motiejus Jakštys 2023-10-16 15:50:41 +03:00
parent 56e5d4e484
commit 1d262ec6d2
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@
--ssh-user=deployerbot-follower \
--confirm-timeout 60 \
--targets ${derivationTarget} -- \
--accept-flake-config
--accept-flake-config || EXITCODE=1
fi
'';
in {
@ -93,10 +93,13 @@ in {
--accept-flake-config
# Optional deployments
EXITCODE=0
${lib.concatLines (map mkOptional cfg.deployIfPresent)}
# done
git push origin main
exit $EXITCODE
'';
};