Skip to content

Commit dba8ec0

Browse files
committed
Adjust tagging to enforce explicit pre-release opt-in
I rewound to commit 09c342c to test this and verify that `postgres:13` would go away (and only `postgres:13-rc1` would remain).
1 parent 3884130 commit dba8ec0

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)