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:
parent
ba0524d193
commit
01cfed2438
|
@ -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"; };
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user