From b043028d14651b4a0fa9465f1b2fc5606c6d0f3d Mon Sep 17 00:00:00 2001
From: Nemo <commits@captnemo.in>
Date: Sat, 21 Jun 2025 22:42:12 +0530
Subject: [PATCH] upgrade to tumbleweed/pg17

---
 Dockerfile                           |  6 ++++--
 .github/workflows/docker-publish.yml | 12 ++++++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index e5d5b60..8550c1f 100644
--- a/Dockerfile
+++ a/Dockerfile
@@ -1,10 +1,10 @@
-FROM opensuse/leap:15.6
+FROM opensuse/tumbleweed:latest
 
-RUN zypper --non-interactive install postgresql16 postgresql16-libversion postgresql16-contrib zstd
+RUN zypper --non-interactive install postgresql17 postgresql17-libversion postgresql17-contrib zstd
 RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
 
 USER postgres
-RUN /usr/lib/postgresql16/bin/initdb --encoding=UTF8 -D /var/lib/pgsql/data
+RUN /usr/lib/postgresql17/bin/initdb --encoding=UTF8 -D /var/lib/pgsql/data
 ENV PGDATA=/var/lib/pgsql/data
 
 # do not use "RUN curl ..." as this would be executed once and the layer would be cached
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index 64c1111..d34da6d 100644
--- a/.github/workflows/docker-publish.yml
+++ a/.github/workflows/docker-publish.yml
@@ -25,7 +25,7 @@
         uses: actions/checkout@v4
     
       - name: Free Disk Space (Ubuntu)
-        uses: jlumbroso/free-disk-space@main
+        uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
         with:
           tool-cache: false
           android: true
@@ -39,7 +39,7 @@
       # https://github.com/sigstore/cosign-installer
       - name: Install cosign
         if: github.event_name != 'pull_request'
-        uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
+        uses: sigstore/cosign-installer@fb28c2b6339dcd94da6e4cbcbc5e888961f6f8c3 # v3
         with:
           cosign-release: 'v2.2.4'
 
@@ -47,13 +47,13 @@
       # multi-platform images and export cache
       # https://github.com/docker/setup-buildx-action
       - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
+        uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
 
       # Login against a Docker registry except on PR
       # https://github.com/docker/login-action
       - name: Log into registry ${{ env.REGISTRY }}
         if: github.event_name != 'pull_request'
-        uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
+        uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
         with:
           registry: ${{ env.REGISTRY }}
           username: ${{ github.actor }}
@@ -63,7 +63,7 @@
       # https://github.com/docker/metadata-action
       - name: Extract Docker metadata
         id: meta
-        uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
+        uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
         with:
           images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
 
@@ -71,7 +71,7 @@
       # https://github.com/docker/build-push-action
       - name: Build and push Docker image
         id: build-and-push
-        uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
+        uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
         with:
           context: .
           push: ${{ github.event_name != 'pull_request' }}
--
rgit 0.1.5