deployerbot: remove --all-systems
This commit is contained in:
parent
5e512675dc
commit
c1957a6896
@ -73,7 +73,8 @@ in {
|
|||||||
script = let
|
script = let
|
||||||
deployDerivationsStr = builtins.concatStringsSep " " cfg.deployDerivations;
|
deployDerivationsStr = builtins.concatStringsSep " " cfg.deployDerivations;
|
||||||
in ''
|
in ''
|
||||||
set -x
|
set -xeuo pipefail
|
||||||
|
|
||||||
export GIT_SSH_COMMAND="ssh -i ''${CREDENTIALS_DIRECTORY}/ssh-key"
|
export GIT_SSH_COMMAND="ssh -i ''${CREDENTIALS_DIRECTORY}/ssh-key"
|
||||||
if [[ ! -d config ]]; then
|
if [[ ! -d config ]]; then
|
||||||
git clone ${cfg.repo} config
|
git clone ${cfg.repo} config
|
||||||
@ -85,19 +86,20 @@ in {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
nix flake update --accept-flake-config --commit-lock-file
|
nix flake update --accept-flake-config --commit-lock-file
|
||||||
nix flake check --all-systems --accept-flake-config
|
# TODO --all-systems
|
||||||
|
nix flake check --accept-flake-config
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
|
EXITCODE=0
|
||||||
${pkgs.deploy-rs.deploy-rs}/bin/deploy \
|
${pkgs.deploy-rs.deploy-rs}/bin/deploy \
|
||||||
--ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \
|
--ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \
|
||||||
--ssh-user=deployerbot-follower \
|
--ssh-user=deployerbot-follower \
|
||||||
--confirm-timeout 60 \
|
--confirm-timeout 60 \
|
||||||
--skip-checks \
|
--skip-checks \
|
||||||
--targets ${deployDerivationsStr} -- \
|
--targets ${deployDerivationsStr} -- \
|
||||||
--accept-flake-config
|
--accept-flake-config || EXITCODE=1
|
||||||
|
|
||||||
# Optional deployments
|
# Optional deployments
|
||||||
EXITCODE=0
|
|
||||||
${lib.concatLines (map mkOptional cfg.deployIfPresent)}
|
${lib.concatLines (map mkOptional cfg.deployIfPresent)}
|
||||||
|
|
||||||
exit $EXITCODE
|
exit $EXITCODE
|
||||||
|
Loading…
Reference in New Issue
Block a user