From 7b1e026ee557368ef296c44bc57a412f28bdc2af Mon Sep 17 00:00:00 2001 From: Nikolay Kiryanov Date: Fri, 17 Jul 2026 22:15:36 +0300 Subject: [PATCH] Support PostgreSQL 18 Bump Alpine to 3.24.1 to get postgresql18-client, add pg18 to the build matrix, and point latest at pg18. Alpine 3.23+ dropped postgresql15-client. pg15 is removed from the matrix. --- .github/workflows/release.yml | 4 ++-- Dockerfile | 4 ++-- README.md | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d82414..02bf11c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - postgres_version: [15, 16, 17] + postgres_version: [16, 17, 18] steps: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 @@ -74,7 +74,7 @@ jobs: with: push: true build-args: | - POSTGRES_VERSION=17 + POSTGRES_VERSION=18 tags: | ${{ steps.name.outputs.lowercase }}:latest platforms: linux/amd64,linux/arm64 diff --git a/Dockerfile b/Dockerfile index dda3a71..4a66c60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.22.1 +FROM alpine:3.24.1 LABEL maintainer="Fedor Borshev " -ARG POSTGRES_VERSION=17 +ARG POSTGRES_VERSION=18 RUN apk update \ && apk --no-cache add dumb-init postgresql${POSTGRES_VERSION}-client curl aws-cli supercronic diff --git a/README.md b/README.md index 62ec3f0..b9e6675 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This is a fork of [karser/postgres-backup-s3](https://github.com/karser/docker-i Docker: ```sh -$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e POSTGRES_DATABASE=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=localhost -e SCHEDULE="@daily" f213/postgres-backup-s3:1.3.0-pg16 +$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e POSTGRES_DATABASE=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=localhost -e SCHEDULE="@daily" f213/postgres-backup-s3:1.4.0-pg16 ``` Docker Compose: @@ -43,7 +43,9 @@ postgres-backup: ``` ### Choose the right version -We publish multiple builds targeting specific PostgreSQL versions (now its 15, 16, and 17). While you can always use the latest version, it's recommended to choose the build that matches your server's PostgreSQL version. This prevents compatibility issues where you might create a backup that can't be restored on your current server. For example, if you're running PostgreSQL 15, use tag `1.3.0-pg15` instead of `1.3.0` or `latest`. +We publish multiple builds targeting specific PostgreSQL versions (now its 16, 17 and 18). While you can always use the latest version, it's recommended to choose the build that matches your server's PostgreSQL version. This prevents compatibility issues where you might create a backup that can't be restored on your current server. For example, if you're running PostgreSQL 16, use tag `1.4.0-pg16` instead of `1.4.0` or `latest`. + +For PostgreSQL 15 or older, pick an earlier release — see [releases](https://github.com/f213/postgres-backup-s3/releases). ### Crontab format