deployerbot: optionals don't fail pushes
This commit is contained in:
parent
56e5d4e484
commit
1d262ec6d2
|
@ -14,7 +14,7 @@
|
||||||
--ssh-user=deployerbot-follower \
|
--ssh-user=deployerbot-follower \
|
||||||
--confirm-timeout 60 \
|
--confirm-timeout 60 \
|
||||||
--targets ${derivationTarget} -- \
|
--targets ${derivationTarget} -- \
|
||||||
--accept-flake-config
|
--accept-flake-config || EXITCODE=1
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
@ -93,10 +93,13 @@ in {
|
||||||
--accept-flake-config
|
--accept-flake-config
|
||||||
|
|
||||||
# Optional deployments
|
# Optional deployments
|
||||||
|
EXITCODE=0
|
||||||
${lib.concatLines (map mkOptional cfg.deployIfPresent)}
|
${lib.concatLines (map mkOptional cfg.deployIfPresent)}
|
||||||
|
|
||||||
# done
|
# done
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
|
exit $EXITCODE
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue