scripts/deploy: swap the iteration order: build all hosts at -min variant, then -light, etc; then also do the -next variants

This commit is contained in:
Colin 2024-06-14 20:21:45 +00:00
parent ba0524d193
commit 01cfed2438
2 changed files with 7 additions and 4 deletions

View File

@ -38,6 +38,9 @@ let
};
});
mkHost = args: {
# TODO: swap order: $host-{next,staging}-{min,light}:
# then lexicographically-adjacent targets would also have the minimal difference in closure,
# and the order in which each target should be built is more evident
"${args.name}" = mkFlavoredHost args;
"${args.name}-next" = mkFlavoredHost args // { branch = "staging-next"; };
"${args.name}-staging" = mkFlavoredHost args // { branch = "staging"; };

View File

@ -121,12 +121,12 @@ deployHelper() {
local host="$1"
local variant="$2"
if [ "$host" = "all" ]; then
for host in moby lappy crappy servo desko; do
if [ "$variant" = "all" ]; then
for variant in -min -light "" "-min-next" "-light-next" "-next"; do
deployHelper "$host" "$variant"
done
elif [ "$variant" = "all" ]; then
for variant in -min -light ""; do
elif [ "$host" = "all" ]; then
for host in moby lappy crappy servo desko; do
deployHelper "$host" "$variant"
done
else