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

Add 14beta2

This commit is contained in:
Joe Ferguson
2021-07-09 15:13:09 -07:00
parent 0d2e407c7c
commit 90892b6814
7 changed files with 1097 additions and 9 deletions

View File

@ -83,20 +83,18 @@ for version; do
debian="$(jq -r '.[env.version].debian' versions.json)"
fullVersion="$(jq -r '.[env.version].version' versions.json)"
origVersion="$fullVersion"
versionAliases=()
while [ "$fullVersion" != "$version" -a "${fullVersion%[.-]*}" != "$fullVersion" ]; do
versionAliases+=( $fullVersion )
fullVersion="${fullVersion%[.-]*}"
done
# ex: 9.6.22, 13.3, or 14beta2
versionAliases=(
$fullVersion
)
# 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 "$origVersion" in
# ex: 9.6, 13, or 14
case "$fullVersion" in
*alpha* | *beta* | *rc*) ;;
*) versionAliases+=( $version ) ;;
esac
# ex: 9 or latest
versionAliases+=(
${aliases[$version]:-}
)