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:
@@ -38,6 +38,9 @@ let
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
mkHost = args: {
|
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}" = mkFlavoredHost args;
|
||||||
"${args.name}-next" = mkFlavoredHost args // { branch = "staging-next"; };
|
"${args.name}-next" = mkFlavoredHost args // { branch = "staging-next"; };
|
||||||
"${args.name}-staging" = mkFlavoredHost args // { branch = "staging"; };
|
"${args.name}-staging" = mkFlavoredHost args // { branch = "staging"; };
|
||||||
|
@@ -121,12 +121,12 @@ deployHelper() {
|
|||||||
local host="$1"
|
local host="$1"
|
||||||
local variant="$2"
|
local variant="$2"
|
||||||
|
|
||||||
if [ "$host" = "all" ]; then
|
if [ "$variant" = "all" ]; then
|
||||||
for host in moby lappy crappy servo desko; do
|
for variant in -min -light "" "-min-next" "-light-next" "-next"; do
|
||||||
deployHelper "$host" "$variant"
|
deployHelper "$host" "$variant"
|
||||||
done
|
done
|
||||||
elif [ "$variant" = "all" ]; then
|
elif [ "$host" = "all" ]; then
|
||||||
for variant in -min -light ""; do
|
for host in moby lappy crappy servo desko; do
|
||||||
deployHelper "$host" "$variant"
|
deployHelper "$host" "$variant"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user