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:
parent
2925aed5fe
commit
076a28bbc3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue