From 55bd8ffef8ff6b05f0e76428700a8c8c6aadc3a4 Mon Sep 17 00:00:00 2001 From: Admire Nyakudya Date: Tue, 5 Nov 2024 16:27:00 +0200 Subject: [PATCH] action update --- .github/workflows/deploy-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-image.yaml b/.github/workflows/deploy-image.yaml index 4e57292..21d7c1a 100644 --- a/.github/workflows/deploy-image.yaml +++ b/.github/workflows/deploy-image.yaml @@ -63,7 +63,7 @@ jobs: push: true tags: | ${{ secrets.DOCKERHUB_REPO }}/pg-backup - ${{ secrets.DOCKERHUB_REPO }}/pg-backup:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }} + ${{ steps.check_hub_image_exists.outputs.check_image == 200 && format('{0}/pg-backup:{1}-{2}.{3}', secrets.DOCKERHUB_REPO, matrix.postgresMajorVersion, matrix.postgisMajorVersion, matrix.postgisMinorRelease) || null}} ${{ secrets.DOCKERHUB_REPO }}/pg-backup:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}--v${{ steps.current_date.outputs.formatted }} build-args: | POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}