From 8f43dbed16e547da5ded98392d013b6127935eea Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Tue, 30 Apr 2024 21:35:18 +0200 Subject: [PATCH] Push `latest` image if `pg_target` is 16 --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d67bf3e..fbe1c61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,3 +128,14 @@ jobs: push: true cache-to: type=inline cache-from: "${{ env.CACHE_FROM }}" + + - name: Push latest image + if: github.repository == 'pgautoupgrade/docker-pgautoupgrade' && github.ref == 'refs/heads/main' && matrix.pg_target == '16' + uses: docker/build-push-action@v5 + with: + platforms: linux/amd64,linux/arm64 + tags: | + "pgautoupgrade/pgautoupgrade:latest" + push: true + cache-to: type=inline + cache-from: "${{ env.CACHE_FROM }}"