Merge pull request #628 from nodejs/speedup-version-update-script

Parallelize the version update process to speed up
This commit is contained in:
Christopher Horrell 2018-02-13 15:17:49 -05:00 committed by GitHub
commit b5ea779ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,7 @@ function update_node_version {
}
for version in "${versions[@]}"; do
{
# Skip "docs" and other non-docker directories
[ -f "$version/Dockerfile" ] || continue
@ -73,6 +74,8 @@ for version in "${versions[@]}"; do
[ -f "$version/$variant/Dockerfile" ] || continue
update_node_version "$baseuri" "$versionnum" "$parentpath/Dockerfile-$variant.template" "$version/$variant/Dockerfile" "$variant"
done
} &
done
wait
info "Done!"