Skip to content

Commit b20f738

Browse files
authored
Merge pull request #327 from infosiftr/suite-aliases
Add suite aliases ("alpine3.13")
2 parents 2ee2926 + 5307e54 commit b20f738

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

generate-stackbrew-library.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ for version; do
176176
variantAliases=( "${versionAliases[@]/%/${variant:+-$variant}}" )
177177
variantAliases=( "${variantAliases[@]//latest-/}" )
178178

179+
if [ "$variant" = '' ] || [ "$variant" = 'dind' ]; then
180+
parent="$(awk 'toupper($1) == "FROM" { print $2 }' "$version/Dockerfile")"
181+
alpine="${parent#*:}" # "3.14"
182+
suiteAliases=( "${variantAliases[0]}" ) # only "X.Y.Z-foo"
183+
suiteAliases=( "${suiteAliases[@]/%/-alpine$alpine}" )
184+
suiteAliases=( "${suiteAliases[@]//latest-/}" )
185+
variantAliases+=( "${suiteAliases[@]}" )
186+
fi
187+
179188
sharedTags=()
180189
if [[ "$variant" == windowsservercore* ]]; then
181190
sharedTags=( "${versionAliases[@]/%/-windowsservercore}" )

0 commit comments

Comments
 (0)