Skip to content

Commit 3690694

Browse files
authored
Merge pull request #797 from infosiftr/rc-beta-alpha
Adjust tagging to enforce explicit pre-release opt-in
2 parents 3884130 + dba8ec0 commit 3690694

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: generate-stackbrew-library.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,14 @@ for version in "${versions[@]}"; do
8080
versionAliases+=( $fullVersion )
8181
fullVersion="${fullVersion%[.-]*}"
8282
done
83+
# skip unadorned "version" on prereleases: https://www.postgresql.org/developer/beta/
84+
# - https://github.com/docker-library/postgres/issues/662
85+
# - https://github.com/docker-library/postgres/issues/784
86+
case "$pgdgVersion" in
87+
*alpha* | *beta*| *rc*) ;;
88+
*) versionAliases+=( $version ) ;;
89+
esac
8390
versionAliases+=(
84-
$version
8591
${aliases[$version]:-}
8692
)
8793

0 commit comments

Comments
 (0)