summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-14 19:38:13 -0500
committerseth <[email protected]>2023-11-14 19:38:13 -0500
commitf281097023293a482498412d3760f350663b7314 (patch)
tree6f89ba89e92645e81acfa73223af044f38b06e1a /justfile
parent94dc521310b34b80158d1a0ab65d4daa3a44d81e (diff)
systems: nixinate -> deploy-rs (again)
this is for rollbacks during the deploy workflow
Diffstat (limited to 'justfile')
-rw-r--r--justfile15
1 files changed, 8 insertions, 7 deletions
diff --git a/justfile b/justfile
index ac69740..dcbd65e 100644
--- a/justfile
+++ b/justfile
@@ -11,8 +11,8 @@ alias u := update
alias ui := update-input
rebuildArgs := "--verbose"
-rebuild := if os() == "macos" {"darwin-rebuild"} else {"nixos-rebuild"}
-asRoot := if os() == "linux" {"true"} else {"false"}
+rebuild := if os() == "macos" { "darwin-rebuild" } else { "nixos-rebuild" }
+asRoot := if os() == "linux" { "true" } else { "false" }
default:
@just --choose
@@ -21,7 +21,7 @@ default:
[macos]
[private]
rebuild subcmd root="false":
- {{ if root == "true" {"sudo "} else {""} }}{{rebuild}} {{subcmd}} {{rebuildArgs}} --flake .
+ {{ if root == "true" { "sudo " } else { "" } }}{{ rebuild }} {{ subcmd }} {{ rebuildArgs }} --flake .
[linux]
[macos]
@@ -32,9 +32,10 @@ check:
nix flake check
deploy host:
- nix run .#{{ host }}
+ deploy -s .#{{ host }}
-deploy-all: (deploy "atlas")
+deploy-all:
+ deploy -s
[linux]
[macos]
@@ -47,14 +48,14 @@ pre-commit:
[linux]
[macos]
switch:
- @just rebuild switch {{asRoot}}
+ @just rebuild switch {{ asRoot }}
switch-and-deploy: switch deploy-all
[linux]
[macos]
test:
- @just rebuild test {{asRoot}}
+ @just rebuild test {{ asRoot }}
update:
nix flake update