Skip to content

Commit 4057dda

Browse files
committed
more pkg aliases
1 parent 1411ec5 commit 4057dda

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
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)
@@ -45,4 +45,5 @@ jobs:
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

Containerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
4242
RUN 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+
4448
ENV PGDATA="/var/db/postgres/data${PG_VERSION}" \
4549
PG_VERSION="${PG_VERSION}" \
4650
POSTGRES_USER="postgres" \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)