1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Fix "onbuild" commit

This commit is contained in:
Tianon Gravi 2017-09-15 11:09:42 -07:00
parent 2925aed5fe
commit 076a28bbc3

View file

@ -102,10 +102,12 @@ for version in "${versions[@]}"; do
commit="$(dirCommit "$dir")"
versionDockerfile="$dir/Dockerfile"
versionCommit="$commit"
if [ "$variant" = 'onbuild' ]; then
versionDockerfile="$(dirname "$dir")/Dockerfile"
versionCommit="$(dirCommit "$(dirname "$versionDockerfile")")"
fi
fullVersion="$(git show "$commit":"$versionDockerfile" | awk '$1 == "ENV" && $2 == "RUBY_VERSION" { print $3; exit }')"
fullVersion="$(git show "$versionCommit":"$versionDockerfile" | awk '$1 == "ENV" && $2 == "RUBY_VERSION" { print $3; exit }')"
versionAliases=(
$fullVersion