aboutsummaryrefslogtreecommitdiff
path: root/src/deploy.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-22Add multi node supportYannik Sander1-7/+115
Run multiple deployments in sequence Resolve targets later Extend context by deployed flake Apply clippy suggestions Add revoke command builder Track succeeded deploys Add revoke function Register revoke error as deploy error Prepare revoke command in activate Extend logger to handle revoke Implement revoke command client side Run revoke on previously suceeded Control whether to override by flag Adhere profile configuration auto_rollback setting Cargo fmt Correctly provide profile path to activation script when revoking Document multi flake mode in README Resolve a typo in README.md Co-authored-by: notgne2 <gen2@gen2.space> Use existing teminology rename revoke_suceeded -> rollback_suceeded Use more open CLI argument name `targets` instead of `flakes` Document name changes in README Add sudo command support for revokes Call run_deploy with `dry_active` flag Test revoke commands contains sudo Set default temp_path in activate binary Require temp_path for wait and activate subcommands Add copyright comment Address review change requests Fix typo in README Co-authored-by: Alexander Bantyev <balsoft@balsoft.ru>
2021-04-16Apply notgne2 suggestions.Oleg Pykhalov1-3/+3
2021-04-07Add dry activate argument.Oleg Pykhalov1-7/+22
2021-02-28Remove `ssh://` prefix from SSH addressesnotgne21-1/+1
2021-02-28Re-use `ssh_addr`notgne21-3/+3
2021-02-09Clean up adding Command argumentsnotgne21-7/+7
2021-02-09Re-add debug log for activate command erroringnotgne21-0/+1
2021-02-09Clean up structure used for activation command error sendingnotgne21-11/+9
2021-02-09Still wait for activation command to end even in cases of errorsnotgne21-43/+70
2021-02-09Use oneshot signals to ensure SSH activate command has finished before ↵notgne21-7/+14
deployment ends
2021-02-09Wait for `ssh_activate` to complete and check for errors in magic_rollback ↵notgne21-11/+20
activation (fixes #58 and #49)
2021-01-26changed: remove 2015-style extern crateBernardo Meurer1-2/+2
2021-01-14Only build wait command if magic_rollback is enablednotgne21-10/+10
2021-01-08Remove unused DeployPathToActivatePathErrornotgne21-3/+0
2021-01-08Struct-ify arguments to build_wait_commandnotgne21-21/+23
2021-01-08Struct-ify arguments to build_activate_commandnotgne21-26/+28
2021-01-08Fix trivial lint issuesnotgne21-4/+4
2021-01-08Restructure projectnotgne21-0/+0
2020-12-30Modify activation logic to keep SSH connection alive for magic-rollback and ↵notgne21-33/+134
avoid forking or disconnecting std{out,err}
2020-12-27Fix log dir/file mismatchnotgne21-2/+2
2020-12-27Replace logger, add more logging options including filesnotgne21-2/+18
2020-12-02Add SPDX-FileCopyrightText to the three files that I changed substantiallyAndreas Fuchs1-0/+1
2020-12-02Use DeployData's store path to build the activate-rs pathAndreas Fuchs1-9/+4
This gets rid of yet more code, so - win!
2020-12-02Use the profile closure's activate script to activate the profileAndreas Fuchs1-1/+1
This gets rid of the "current_exe" vestige that has stuck around from when this program was meant to be standalone; instead, we use the (already known) path to the activate-rs wrapper, which automatically uses the correct binary for the deploy target platform.
2020-11-22Remove ref/cows from DeployDefs, add interactive flag (resolves #4)notgne21-1/+1
2020-11-22Use `/tmp` as temp directory, not `/tmp/deploy-rs` (resolves #8 by deprecation)notgne21-4/+4
2020-11-14Make `magicRollback` be enabled by defaultnotgne21-1/+1
2020-11-07Remove bootstrapnotgne21-11/+0
2020-10-29Make all the errors work correctly (I am so so sorry)notgne21-12/+37
2020-10-29Make lock hash clearer (at apparently no expense)notgne21-1/+1
2020-10-26Add more debug logsnotgne21-0/+7
2020-10-23Enable color for activation commandnotgne21-1/+3
2020-10-13Clean up some CLI arguments, make magic rollback optionalnotgne21-34/+50
2020-10-13Auto rollback if deployment is not confirmednotgne21-3/+49
2020-10-02General improvements, deprecate `activate` profile option in favor of ↵notgne21-25/+15
executing $PROFILE/activate (Wrap It Yourself) to ensure successful rollback activations
2020-10-01Handle more command exits correctlynotgne21-1/+5
2020-10-01Rework system for deploy properties, add CLI override flagsnotgne21-21/+16
2020-10-01Improve nix copy stuffnotgne21-25/+1
2020-09-29More separation and component testingnotgne21-28/+88
2020-09-29Add license information, reformat Nix files, clean upnotgne21-0/+4
2020-09-28use separate binary for activation, more cleanupnotgne21-2/+15
2020-09-28More functionsnotgne21-1/+0
2020-09-28Add missing filesnotgne21-0/+57