You've already forked postgres
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:
@ -80,8 +80,14 @@ for version in "${versions[@]}"; do
|
|||||||
versionAliases+=( $fullVersion )
|
versionAliases+=( $fullVersion )
|
||||||
fullVersion="${fullVersion%[.-]*}"
|
fullVersion="${fullVersion%[.-]*}"
|
||||||
done
|
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+=(
|
versionAliases+=(
|
||||||
$version
|
|
||||||
${aliases[$version]:-}
|
${aliases[$version]:-}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user