Skip to content

Commit fdd07be

Browse files
Skip EL8 PG19 when building/pushing all PostgreSQL versions
The EL8 guard in update_image and ci/push_images only fired when POSTGRES_VERSION was explicitly set to 19. With an empty POSTGRES_VERSION (the `all versions'' mode both scripts support) the per-version loop still yielded 19 and attempted to build or push a *-8-pg19 image that update_dockerfiles never generates. Mirror the in-loop guard update_dockerfiles already uses. The existing top-level check is kept so an explicit EL8+PG19 request still fails loudly. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7211f17e-4ca6-41a8-9eb1-633c42a30149
1 parent 425733d commit fdd07be

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎ci/push_images‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ while read -r line; do
4848
if [ -n "${POSTGRES_VERSION}" ] && [ "${pgversion}" != "${POSTGRES_VERSION}" ] ; then
4949
continue
5050
fi
51+
if [[ "${release}" = '8' ]] && [[ "${pgversion}" = '19' ]]; then
52+
# PGDG does not publish PostgreSQL 19 packages for EL8.
53+
continue
54+
fi
5155
if { [[ "${os}" = 'centos' ]] || [[ "${os}" = 'oraclelinux' ]]; } && \
5256
[[ "${release}" = '6' ]] && [[ "${pgversion}" = '13' ]]; then
5357
# CentOS and OracleLinux 6 doesn't have pg13 packages yet.

‎update_image‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ elif [[ "${os}" = 'centos' ]] || [[ "${os}" = 'oraclelinux' ]] || [[ "${os}" = '
4848
if [ -n "${POSTGRES_VERSION}" ] && [ "${pgversion}" != "${POSTGRES_VERSION}" ] ; then
4949
continue
5050
fi
51+
if [[ "${release}" = '8' ]] && [[ "${pgversion}" = '19' ]]; then
52+
# PGDG does not publish PostgreSQL 19 packages for EL8.
53+
continue
54+
fi
5155
if { [[ "${os}" = 'centos' ]] || [[ "${os}" = 'oraclelinux' ]]; } && \
5256
[[ "${release}" = '6' ]] && [[ "${pgversion}" = '13' ]]; then
5357
# CentOS and OracleLinux 6 doesn't have pg13 packages yet.

0 commit comments

Comments
 (0)