tangled
alpha
login
or
join now
isabelroses.com
/
dotfiles
12
fork
atom
my over complex system configurations
dotfiles.isabelroses.com/
nixos
nix
flake
dotfiles
linux
12
fork
atom
overview
issues
pulls
pipelines
justfile: deployment script
isabelroses.com
2 months ago
01ca2f9f
32f2c00b
+23
-1
2 changed files
expand all
collapse all
unified
split
.gitignore
justfile
+3
.gitignore
···
4
4
# Ignore nixos build outputs
5
5
result*
6
6
.direnv/
7
7
+
8
8
+
# deploy script
9
9
+
.deploy-summary
+20
-1
justfile
···
31
31
set -euo pipefail
32
32
before=$(ssh {{ host }} 'readlink /run/current-system')
33
33
just builder switch --target-host {{ host }} --use-substitutes {{ args }}
34
34
-
ssh {{ host }} lix diff "$before"
34
34
+
35
35
+
if [[ -n "${DEPLOY_SUMMARY:-}" ]]; then
36
36
+
{
37
37
+
echo "===== {{ host }} ====="
38
38
+
ssh {{ host }} lix diff "$before"
39
39
+
echo
40
40
+
} >> "$DEPLOY_SUMMARY"
41
41
+
else
42
42
+
ssh {{ host }} lix diff "$before"
43
43
+
fi
35
44
36
45
[group('rebuild')]
37
46
[no-exit-message]
38
47
deploy-all:
48
48
+
#!/usr/bin/env bash
49
49
+
set -euo pipefail
50
50
+
export DEPLOY_SUMMARY=".deploy-summary"
51
51
+
: > "$DEPLOY_SUMMARY"
52
52
+
39
53
just deploy minerva
40
54
just deploy athena
41
55
just deploy aphrodite
42
56
just deploy skadi
43
57
just deploy hephaestus
44
58
just deploy isis
59
59
+
60
60
+
echo
61
61
+
echo "===== DEPLOYMENT SUMMARY ====="
62
62
+
cat "$DEPLOY_SUMMARY"
63
63
+
@rm "$DEPLOY_SUMMARY"
45
64
46
65
# rebuild the boot
47
66
[group('rebuild')]