Skip to content

Commit

Permalink
Make Postgres version visible to Renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Sep 22, 2024
1 parent d54e2bf commit 1ffd84e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 22 deletions.
30 changes: 20 additions & 10 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@ ENV PG95=9.5.25
ENV PG96=9.6.24
ENV PG10=10.23
ENV PG11=11.22
ENV PG12=12.20
ENV PG13=13.16
ENV PG14=14.13
ENV PG15=15.8
ENV PG16=16.4

# renovate: datasource=repology depName=macports/postgresql12-server versioning=loose
ENV PG12_VERSION=12.20

# renovate: datasource=repology depName=macports/postgresql13-server versioning=loose
ENV PG13_VERSION=13.16

# renovate: datasource=repology depName=macports/postgresql14-server versioning=loose
ENV PG14_VERSION=14.13

# renovate: datasource=repology depName=macports/postgresql15-server versioning=loose
ENV PG15_VERSION=15.8

# renovate: datasource=repology depName=macports/postgresql16-server versioning=loose
ENV PG16_VERSION=16.4

# Where we'll do all our compiling and similar
ENV BUILD_ROOT /buildroot
Expand Down Expand Up @@ -77,7 +87,7 @@ RUN cd postgresql-11.* && \

### PostgreSQL 12
FROM base-build as build-12
RUN wget https://ftp.postgresql.org/pub/source/v${PG12}/postgresql-${PG12}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG12_VERSION}/postgresql-${PG12_VERSION}.tar.bz2 && \
tar -xf postgresql-12*.tar.bz2

RUN cd postgresql-12.* && \
Expand All @@ -89,7 +99,7 @@ RUN cd postgresql-12.* && \
### PostgreSQL 13
FROM base-build as build-13

RUN wget https://ftp.postgresql.org/pub/source/v${PG13}/postgresql-${PG13}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG13_VERSION}/postgresql-${PG13_VERSION}.tar.bz2 && \
tar -xf postgresql-13*.tar.bz2

RUN cd postgresql-13.* && \
Expand All @@ -101,7 +111,7 @@ RUN cd postgresql-13.* && \
### PostgreSQL 14
FROM base-build as build-14

RUN wget https://ftp.postgresql.org/pub/source/v${PG14}/postgresql-${PG14}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG14_VERSION}/postgresql-${PG14_VERSION}.tar.bz2 && \
tar -xf postgresql-14*.tar.bz2

RUN cd postgresql-14.* && \
Expand All @@ -113,7 +123,7 @@ RUN cd postgresql-14.* && \
### PostgreSQL 15
FROM base-build as build-15

RUN wget https://ftp.postgresql.org/pub/source/v${PG15}/postgresql-${PG15}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG15_VERSION}/postgresql-${PG15_VERSION}.tar.bz2 && \
tar -xf postgresql-15*.tar.bz2

RUN cd postgresql-15.* && \
Expand All @@ -125,7 +135,7 @@ RUN cd postgresql-15.* && \
### PostgreSQL 16
FROM base-build as build-16

RUN wget https://ftp.postgresql.org/pub/source/v${PG16}/postgresql-${PG16}.tar.gz && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG16_VERSION}/postgresql-${PG16_VERSION}.tar.gz && \
tar -xf postgresql-16*.tar.gz

RUN cd postgresql-16.* && \
Expand Down
32 changes: 21 additions & 11 deletions Dockerfile.bookworm
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@ ENV PG95=9.5.25
ENV PG96=9.6.24
ENV PG10=10.23
ENV PG11=11.22
ENV PG12=12.20
ENV PG13=13.16
ENV PG14=14.13
ENV PG15=15.8
ENV PG16=16.4

# renovate: datasource=repology depName=macports/postgresql12-server versioning=loose
ENV PG12_VERSION=12.20

# renovate: datasource=repology depName=macports/postgresql13-server versioning=loose
ENV PG13_VERSION=13.16

# renovate: datasource=repology depName=macports/postgresql14-server versioning=loose
ENV PG14_VERSION=14.13

# renovate: datasource=repology depName=macports/postgresql15-server versioning=loose
ENV PG15_VERSION=15.8

# renovate: datasource=repology depName=macports/postgresql16-server versioning=loose
ENV PG16_VERSION=16.4

# Where we'll do all our compiling and similar
ENV BUILD_ROOT /buildroot
Expand Down Expand Up @@ -75,7 +85,7 @@ RUN cd postgresql-11.* && \

### PostgreSQL 12
FROM base-build as build-12
RUN wget https://ftp.postgresql.org/pub/source/v${PG12}/postgresql-${PG12}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG12_VERSION}/postgresql-${PG12_VERSION}.tar.bz2 && \
tar -xf postgresql-12*.tar.bz2

RUN cd postgresql-12.* && \
Expand All @@ -87,7 +97,7 @@ RUN cd postgresql-12.* && \
### PostgreSQL 13
FROM base-build as build-13

RUN wget https://ftp.postgresql.org/pub/source/v${PG13}/postgresql-${PG13}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG13_VERSION}/postgresql-${PG13_VERSION}.tar.bz2 && \
tar -xf postgresql-13*.tar.bz2

RUN cd postgresql-13.* && \
Expand All @@ -99,7 +109,7 @@ RUN cd postgresql-13.* && \
### PostgreSQL 14
FROM base-build as build-14

RUN wget https://ftp.postgresql.org/pub/source/v${PG14}/postgresql-${PG14}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG14_VERSION}/postgresql-${PG14_VERSION}.tar.bz2 && \
tar -xf postgresql-14*.tar.bz2

RUN cd postgresql-14.* && \
Expand All @@ -111,7 +121,7 @@ RUN cd postgresql-14.* && \
### PostgreSQL 15
FROM base-build as build-15

RUN wget https://ftp.postgresql.org/pub/source/v${PG15}/postgresql-${PG15}.tar.bz2 && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG15_VERSION}/postgresql-${PG15_VERSION}.tar.bz2 && \
tar -xf postgresql-15*.tar.bz2

RUN cd postgresql-15.* && \
Expand All @@ -123,7 +133,7 @@ RUN cd postgresql-15.* && \
### PostgreSQL 16
FROM base-build as build-16

RUN wget https://ftp.postgresql.org/pub/source/v${PG16}/postgresql-${PG16}.tar.gz && \
RUN wget https://ftp.postgresql.org/pub/source/v${PG16_VERSION}/postgresql-${PG16_VERSION}.tar.gz && \
tar -xf postgresql-16*.tar.gz

RUN cd postgresql-16.* && \
Expand Down Expand Up @@ -169,4 +179,4 @@ WORKDIR /var/lib/postgresql
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

CMD ["postgres"]
CMD ["postgres"]
3 changes: 2 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:recommended",
"customManagers:dockerfileVersions"
]
}

0 comments on commit 1ffd84e

Please sign in to comment.