style nitpicks

This commit is contained in:
Motiejus Jakštys 2024-02-26 12:39:08 +02:00
parent 86bc0dfc1f
commit 7f977e6879
1 changed files with 3 additions and 6 deletions

View File

@ -88,17 +88,14 @@
fi
# Optional deployments
${lib.concatLines (map ({
derivationTarget,
pingTarget,
}: ''
if ${pkgs.inetutils}/bin/ping -c 1 ${pingTarget}; then
${lib.concatLines (map (t: ''
if ${pkgs.inetutils}/bin/ping -c 1 ${t.pingTarget}; then
${pkgs.deploy-rs.deploy-rs}/bin/deploy \
--ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \
--ssh-user=deployerbot-follower \
--confirm-timeout 60 \
--skip-checks \
--targets ${derivationTarget} -- \
--targets ${t.derivationTarget} -- \
--accept-flake-config || EXITCODE=1
fi
'')