+3
.gitignore
+3
.gitignore
+20
-1
justfile
+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
-
ssh {{ host }} lix diff "$before"
34
+
35
+
if [[ -n "${DEPLOY_SUMMARY:-}" ]]; then
36
+
{
37
+
echo "===== {{ host }} ====="
38
+
ssh {{ host }} lix diff "$before"
39
+
echo
40
+
} >> "$DEPLOY_SUMMARY"
41
+
else
42
+
ssh {{ host }} lix diff "$before"
43
+
fi
35
44
36
45
[group('rebuild')]
37
46
[no-exit-message]
38
47
deploy-all:
48
+
#!/usr/bin/env bash
49
+
set -euo pipefail
50
+
export DEPLOY_SUMMARY=".deploy-summary"
51
+
: > "$DEPLOY_SUMMARY"
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
+
60
+
echo
61
+
echo "===== DEPLOYMENT SUMMARY ====="
62
+
cat "$DEPLOY_SUMMARY"
63
+
@rm "$DEPLOY_SUMMARY"
45
64
46
65
# rebuild the boot
47
66
[group('rebuild')]