commit 1d262ec6d24a15c2dbfe7fb1c6584980bedfe320 (tree)
parent 56e5d4e484eafc2ef95070bde5c0684e2ae24847
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Mon, 16 Oct 2023 15:50:41 +0300
deployerbot: optionals don't fail pushes
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix
@@ -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
'';
};