Merge pull request #797 from infosiftr/rc-beta-alpha

Adjust tagging to enforce explicit pre-release opt-in
This commit is contained in:
yosifkit 2020-12-17 10:21:00 -08:00 committed by GitHub
commit 3690694930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -80,8 +80,14 @@ for version in "${versions[@]}"; do
versionAliases+=( $fullVersion )
fullVersion="${fullVersion%[.-]*}"
done
# skip unadorned "version" on prereleases: https://www.postgresql.org/developer/beta/
# - https://github.com/docker-library/postgres/issues/662
# - https://github.com/docker-library/postgres/issues/784
case "$pgdgVersion" in
*alpha* | *beta*| *rc*) ;;
*) versionAliases+=( $version ) ;;
esac
versionAliases+=(
$version
${aliases[$version]:-}
)