File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 image_name : postgres
3636 image_tag : " 17"
3737 build_args : " PG_VERSION=17,BASE_VERSION=15-quarterly"
38- extra_tags : " 17-pkg,latest"
38+ extra_tags : " 17-pkg,pkg, latest"
3939 secrets : inherit
4040
4141 # PostgreSQL 17 (latest packages)
4545 image_name : postgres
4646 image_tag : " 17-pkg-latest"
4747 build_args : " PG_VERSION=17,BASE_VERSION=15"
48+ extra_tags : " pkg-latest"
4849 secrets : inherit
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ RUN chmod +x /etc/services.d/*/run /etc/cont-init.d/* 2>/dev/null || true
4141# Store PG version for scripts
4242RUN echo "${PG_VERSION}" > /var/db/postgres/pg_version
4343
44+ # Extract package version for tagging (e.g., 17.7 or 14.20)
45+ RUN mkdir -p /app && \
46+ pkg query '%v' postgresql${PG_VERSION}-server | sed 's/_.*$//' > /app/version
47+
4448ENV PGDATA="/var/db/postgres/data${PG_VERSION}" \
4549 PG_VERSION="${PG_VERSION}" \
4650 POSTGRES_USER="postgres" \
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ services:
4646| `:14-pkg` | quarterly | Alias for `:14` |
4747| `:14-pkg-latest` | latest | PostgreSQL 14 (latest packages) |
4848| `:latest` | quarterly | Alias for `:17` |
49+ | `:pkg` | quarterly | Alias for `:17` |
50+ | `:pkg-latest` | latest | Alias for `:17-pkg-latest` |
4951
5052# # Environment Variables
5153
You can’t perform that action at this time.
0 commit comments