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

Adjust "slim" variants to also include hyper-explicit aliases ("slim-jessie", etc)

This commit is contained in:
Tianon Gravi 2017-08-03 14:07:41 -07:00
parent a6918175fd
commit 05a198ca89

View file

@ -91,6 +91,12 @@ for version in "${versions[@]}"; do
dir="$version/$v"
variant="$(basename "$v")"
if [ "$variant" = 'slim' ]; then
# convert "slim" into "slim-jessie"
# https://github.com/docker-library/ruby/pull/142#issuecomment-320012893
variant="$variant-$(basename "$(dirname "$v")")"
fi
[ -f "$dir/Dockerfile" ] || continue
commit="$(dirCommit "$dir")"
@ -108,11 +114,17 @@ for version in "${versions[@]}"; do
)
variantAliases=( "${versionAliases[@]/%/-$variant}" )
if [ "$variant" = "$debianSuite" ]; then
variantAliases+=( "${versionAliases[@]}" )
elif [ "$variant" = "alpine${alpineVersion}" ]; then
variantAliases+=( "${versionAliases[@]/%/-alpine}" )
fi
case "$variant" in
"$debianSuite")
variantAliases+=( "${versionAliases[@]}" )
;;
*-"$debianSuite")
variantAliases+=( "${versionAliases[@]/%/-${variant%-$debianSuite}}" )
;;
"alpine${alpineVersion}")
variantAliases+=( "${versionAliases[@]/%/-alpine}" )
;;
esac
variantAliases=( "${variantAliases[@]//latest-/}" )
case "$v" in