examples: add krops deployment method
This commit is contained in:
parent
e017675d5e
commit
fe118b28ff
5 changed files with 91 additions and 0 deletions
|
|
@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
|
|||
|
||||
alias fetch-release="${toString nix-bitcoin-path}/helper/fetch-release"
|
||||
|
||||
krops-deploy() {
|
||||
# Ensure strict permissions on secrets/ directory before rsyncing it to
|
||||
# the target machine
|
||||
chmod 700 ${toString ./secrets}
|
||||
$(nix-build --no-out-link ${toString ./krops/deploy.nix})
|
||||
}
|
||||
|
||||
figlet "nix-bitcoin"
|
||||
(mkdir -p secrets; cd secrets; env -i ${nix-bitcoin.generate-secrets})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue