Merge pull request #628 from nodejs/speedup-version-update-script
Parallelize the version update process to speed up
This commit is contained in:
commit
b5ea779ec2
|
|
@ -53,6 +53,7 @@ function update_node_version {
|
||||||
}
|
}
|
||||||
|
|
||||||
for version in "${versions[@]}"; do
|
for version in "${versions[@]}"; do
|
||||||
|
{
|
||||||
# Skip "docs" and other non-docker directories
|
# Skip "docs" and other non-docker directories
|
||||||
[ -f "$version/Dockerfile" ] || continue
|
[ -f "$version/Dockerfile" ] || continue
|
||||||
|
|
||||||
|
|
@ -73,6 +74,8 @@ for version in "${versions[@]}"; do
|
||||||
[ -f "$version/$variant/Dockerfile" ] || continue
|
[ -f "$version/$variant/Dockerfile" ] || continue
|
||||||
update_node_version "$baseuri" "$versionnum" "$parentpath/Dockerfile-$variant.template" "$version/$variant/Dockerfile" "$variant"
|
update_node_version "$baseuri" "$versionnum" "$parentpath/Dockerfile-$variant.template" "$version/$variant/Dockerfile" "$variant"
|
||||||
done
|
done
|
||||||
|
} &
|
||||||
done
|
done
|
||||||
|
|
||||||
|
wait
|
||||||
info "Done!"
|
info "Done!"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue