Skip to content

Commit

Permalink
update stackbrew script
Browse files Browse the repository at this point in the history
  • Loading branch information
alcohol committed Jun 17, 2024
1 parent 282c747 commit a2f75bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
set -Eeuo pipefail

declare -A aliases=(
[1.10]='1'
[2.2]='lts'
[2.7]='2 latest'
[legacy]='1'
[lts]='lts'
[latest]='2 latest'
)

self="$(basename "${BASH_SOURCE[0]}")"
Expand Down Expand Up @@ -82,7 +82,7 @@ EOH
for directory in "${directories[@]}"; do
commit="$(dirCommit "$directory")"
version="$(extractVersion "$commit" "$directory")"
tags=("$version" "$directory" "${aliases[$directory]:-}")
tags=("$version" "${version%.*}" "${aliases[$directory]:-}")
parent="$(awk 'toupper($1) == "FROM" { print $2; exit }' "$directory/Dockerfile")"
arches="${parentRepoToArches[$parent]}"

Expand Down

0 comments on commit a2f75bf

Please sign in to comment.