scripts/deploy: deploy crappy latter than all the others
This commit is contained in:
@@ -161,17 +161,36 @@ deployOneHost() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
parseArgs "$@"
|
||||
|
||||
failedDeploys=()
|
||||
for v in "${variants[@]}"; do
|
||||
deployHosts() {
|
||||
local hosts=("$@")
|
||||
for v in "${variants[@]}"; do
|
||||
for h in "${hosts[@]}"; do
|
||||
deployOneHost "$h" "$v" || \
|
||||
failedDeploys+=("$h$v")
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
parseArgs "$@"
|
||||
|
||||
# i care e.g. that full moby is deployed before crappy:
|
||||
earlyHosts=()
|
||||
lateHosts=()
|
||||
for host in "${hosts[@]}"; do
|
||||
case $host in
|
||||
(crappy)
|
||||
lateHosts+=("$host")
|
||||
;;
|
||||
(*)
|
||||
earlyHosts+=("$host")
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
deployHosts "${earlyHosts[@]}"
|
||||
deployHosts "${lateHosts[@]}"
|
||||
|
||||
if [ "${#failedDeploys[@]}" -ne 0 ]; then
|
||||
echo "FAILED DEPLOYMENT:"
|
||||
for d in "${failedDeploys[@]}"; do
|
||||
|
Reference in New Issue
Block a user