Skip to content

Commit 6befd08

Browse files
committed
Fix "passenger" tagging bug
1 parent 609e8f9 commit 6befd08

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

generate-stackbrew-library.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,21 @@ join() {
6868
}
6969

7070
for version in "${versions[@]}"; do
71+
# normally this would be down in the other loop, but "passenger" doesn't have it, so this is the simplest option (we just can't ever have "alpine" be out of sync, so we should remove it instead if it ever needs to be out of sync)
72+
fullVersion="$(git show "$commit":"$version/Dockerfile" | awk '$1 == "ENV" && $2 == "REDMINE_VERSION" { print $3; exit }')"
73+
74+
versionAliases=(
75+
$fullVersion
76+
$version
77+
${aliases[$version]:-}
78+
)
79+
7180
for variant in '' passenger alpine; do
7281
dir="$version${variant:+/$variant}"
7382
[ -f "$dir/Dockerfile" ] || continue
7483

7584
commit="$(dirCommit "$dir")"
7685

77-
fullVersion="$(git show "$commit":"$dir/Dockerfile" | awk '$1 == "ENV" && $2 == "REDMINE_VERSION" { print $3; exit }')"
78-
79-
versionAliases=(
80-
$fullVersion
81-
$version
82-
${aliases[$version]:-}
83-
)
84-
8586
if [ -n "$variant" ]; then
8687
variantAliases=( "${versionAliases[@]/%/-$variant}" )
8788
variantAliases=( "${variantAliases[@]//latest-/}" )

0 commit comments

Comments
 (0)