1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Adjust tagging to enforce explicit pre-release opt-in

I rewound to commit 09c342c555 to test this and verify that `postgres:13` would go away (and only `postgres:13-rc1` would remain).
This commit is contained in:
Tianon Gravi
2020-12-16 17:26:51 -08:00
parent 38841304dd
commit dba8ec0bf9

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]:-}
)