From f41316463820b6f30b452dc92fcfccb64035ca01 Mon Sep 17 00:00:00 2001
From: Peter Kurfer <peter@icb4dc0.de>
Date: Wed, 26 Mar 2025 13:51:04 +0100
Subject: [PATCH] feat(ci): update Postgres minor version and delete temporary
 tags

---
 .github/workflows/postgres.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml
index 4b6c93f..5adfe04 100644
--- a/.github/workflows/postgres.yml
+++ b/.github/workflows/postgres.yml
@@ -13,7 +13,7 @@ on:
       - "v*"
 
 env:
-  MINOR_VERSIONS: '{"15": "10","17": "2"}'
+  MINOR_VERSIONS: '{"15": "12","17": "4"}'
 
 jobs:
   build:
@@ -63,6 +63,11 @@ jobs:
           username: ${{ secrets.HARBOR_USER }}
           password: ${{ secrets.HARBOR_TOKEN }}
 
+      - name: Install skopeo
+        run: |
+          apt-get update
+          apt-get install -y skopeo
+
       - name: Create manifest
         run: |
           docker buildx imagetools create \
@@ -70,3 +75,6 @@ jobs:
               -t registry.icb4dc0.de/supabase-operator/postgres:${{ matrix.postgres_major }}.${{ fromJSON(env.MINOR_VERSIONS)[matrix.postgres_major] }}.${{ github.run_number }} \
               registry.icb4dc0.de/supabase-operator/postgres:${{ matrix.postgres_major }}.${{ fromJSON(env.MINOR_VERSIONS)[matrix.postgres_major] }}.${{ github.run_number }}-arm64 \
               registry.icb4dc0.de/supabase-operator/postgres:${{ matrix.postgres_major }}.${{ fromJSON(env.MINOR_VERSIONS)[matrix.postgres_major] }}.${{ github.run_number }}-amd64
+
+          skopeo delete registry.icb4dc0.de/supabase-operator/postgres:${{ matrix.postgres_major }}.${{ fromJSON(env.MINOR_VERSIONS)[matrix.postgres_major] }}.${{ github.run_number }}-arm64
+          skopeo delete registry.icb4dc0.de/supabase-operator/postgres:${{ matrix.postgres_major }}.${{ fromJSON(env.MINOR_VERSIONS)[matrix.postgres_major] }}.${{ github.run_number }}-amd64