Commit Graph

326 Commits

Author SHA1 Message Date
notgne2
63ccbd7cdd
Add .envrc and fix devShell to work with more tools 2021-08-04 00:06:51 -07:00
Timothy DeHerrera
cfa203b1d3
fix ambiguous crate ref 2021-07-29 18:17:54 -06:00
Timothy DeHerrera
8a27483dce
optionally take args as input 2021-07-29 18:17:53 -06:00
Timothy DeHerrera
3b6e84d3e2
make cli opts public 2021-07-29 18:17:51 -06:00
Timothy DeHerrera
1b08f09f49
update tokio 2021-07-29 18:17:47 -06:00
Timothy DeHerrera
3c4d7d53d0
export cli run in lib 2021-07-14 15:21:56 -06:00
Alexander Bantyev
587cbcfe8d
Merge pull request #97 from blaggacao/patch-1
fix: add meta.description
2021-07-08 10:24:53 +03:00
Alexander Bantyev
364ef202e4
Merge pull request #96 from serokell/balsoft/eval-only-once
Evaluate only once, and then only realise
2021-07-02 20:55:09 +03:00
Alexander Bantyev
220f07199e
Evaluate only once, and then only realise 2021-07-02 19:28:49 +03:00
David Arnold
4bc3bea502
fix: add meta.description 2021-06-25 20:49:54 -05:00
Alexander Bantyev
f973cb571c
Add rustfmt and rust-analyzer to devShell 2021-06-25 11:27:05 +03:00
Alexander Bantyev
0964acc950
Merge pull request #95 from serokell/balsoft/refactor-as-overlay
flake.nix: refactor as overlay
2021-06-23 22:45:59 +03:00
Alexander Bantyev
0fc8dea27a
Merge branch 'feature/multi-node' 2021-06-22 14:58:01 +03:00
Alexander Bantyev
1d88b8409e
Cargo fmt 2021-06-22 14:57:50 +03:00
Yannik Sander
1a2d35be27 Add multi node support
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-06-22 13:41:15 +02:00
Alexander Bantyev
6424e7519f
flake.nix: refactor as overlay 2021-06-22 00:46:08 +03:00
Alexander Bantyev
70d71b3027
Merge pull request #84 from lovesegfault/flake-update
flake: update inputs
2021-06-06 23:37:16 +03:00
Bernardo Meurer
047c5dc39a
flake: update inputs 2021-06-06 12:46:28 -07:00
Alexander Bantyev
f1b70cad41
Merge pull request #93 from serokell/balsoft/matrix
Mention the matrix channel in the README
2021-06-06 17:15:27 +03:00
Alexander Bantyev
2a7cef6c29
Mention the matrix channel in the README 2021-06-06 16:04:12 +03:00
Alexander Bantyev
d2d05e1357
Merge pull request #90 from serokell/balsoft/fix-rollback
Fix auto-rollback with dry_activate
2021-05-20 14:14:22 +03:00
Alexander Bantyev
c8854cee19
flake.nix: clean up dry-activation logic 2021-05-20 14:14:01 +03:00
Alexander Bantyev
86fecf7db2
Fix rollback to old profiles
In 5d5da48 (https://github.com/serokell/deploy-rs/pull/81), $DRY_ACTIVATE
is used in a bash script with -u. When DRY_ACTIVATE is not set (which it
is not for older profiles), the script fails. Fix this by setting a fallback.
2021-05-18 22:11:35 +03:00
notgne2
896f9d3b5d
Merge pull request #82 from serokell/notgne2/add-hm-support
Add helper activation function for home-manager
2021-05-10 21:44:56 -07:00
notgne2
8dd6e23b95
Add helper activation function for home-manager 2021-05-10 21:43:16 -07:00
notgne2
f0456d6714
Merge pull request #81 from kitnil/dry-activate
Add dry-activate
2021-05-10 21:40:30 -07:00
notgne2
5d5da4898d
Use correct path to deploy-rs-activate binary when using dry_activate
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2021-04-30 10:47:46 +03:00
Oleg Pykhalov
920c9d2ed4
Apply notgne2 suggestions. 2021-04-16 12:38:37 +03:00
Oleg Pykhalov
6093dc02e9
flake: Add optional dryActivate argument to activate.custom 2021-04-07 19:40:17 +03:00
Oleg Pykhalov
46ac71aa24
Add dry activate argument. 2021-04-07 19:40:15 +03:00
Zhenya Vinogradov
9e405fbc5a
Merge pull request #79 from serokell/zhenya/ops1190-nix-logs
CI: print full logs for `nix flake check`
2021-03-22 12:52:06 +03:00
Zhenya Vinogradov
03d9f670ec
CI: print full logs for nix flake check
Without '-L' nix only prints logs on failure, and only the last 10
lines of them
2021-03-22 12:51:09 +03:00
notgne2
6278b9bef5
Merge pull request #64 from serokell/notgne2/fix-ssh-url
Remove `ssh://` prefix from SSH addresses
2021-03-01 20:12:55 -07:00
notgne2
0e1cc238e1
Remove ssh:// prefix from SSH addresses 2021-02-28 02:38:40 -07:00
notgne2
c8a40bedcd
Re-use ssh_addr 2021-02-28 02:38:06 -07:00
notgne2
4d4bdda3ab
Merge pull request #70 from talw/readme-fix
Fix examples/system/README.md: `deploy` -> `deploy-rs`
2021-02-28 02:24:08 -07:00
Tal Walter
c89930b0d9 Fix examples/system/README.md: deploy -> deploy-rs 2021-02-27 11:11:53 +09:00
notgne2
c599d36da6
Merge pull request #67 from serokell/notgne2/remove-redundant-format
Remove redundant `format!()`
2021-02-19 16:32:44 -07:00
notgne2
15864f9826
Remove redundant format!() 2021-02-19 16:31:28 -07:00
notgne2
da25b20674
Merge pull request #66 from serokell/notgne2/clean-up-command-args
Clean up adding Command arguments
2021-02-19 16:30:28 -07:00
notgne2
b8e2837250
Clean up adding Command arguments 2021-02-09 21:41:53 -07:00
notgne2
fecc7e723d
Merge pull request #65 from serokell/notgne2/set-tmp-in-nixos-activation
cd into `/tmp` during NixOS activation
2021-02-09 03:01:36 -07:00
notgne2
c27b76e001
Merge branch 'master' into notgne2/set-tmp-in-nixos-activation 2021-02-09 03:00:48 -07:00
notgne2
4f956e0979
Merge pull request #59 from serokell/notgne2/wait-for-activate
Wait for activation
2021-02-09 02:56:35 -07:00
notgne2
7ee0f7eb4d
Re-add debug log for activate command erroring 2021-02-09 02:55:26 -07:00
notgne2
b74bb50a15
Clean up structure used for activation command error sending 2021-02-09 02:55:26 -07:00
notgne2
e798bb7d83
Still wait for activation command to end even in cases of errors 2021-02-09 02:55:26 -07:00
notgne2
c32d25ec28
Use oneshot signals to ensure SSH activate command has finished before deployment ends 2021-02-09 02:55:26 -07:00
notgne2
4ff0e5f90b
Wait for ssh_activate to complete and check for errors in magic_rollback activation (fixes #58 and #49) 2021-02-09 02:55:26 -07:00
notgne2
96a268db2d
Merge pull request #47 from lovesegfault/style-fixes
changed: assorted fixes
2021-02-08 23:47:32 -07:00