From eea8bc529dc2e910238406bfc01c0723f967bc99 Mon Sep 17 00:00:00 2001 From: zypriafl Date: Mon, 4 Nov 2024 14:38:06 +0100 Subject: [PATCH] Update push-docker.yml --- .github/workflows/push-docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index a980b4c6f..76a679140 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -81,7 +81,7 @@ jobs: type=raw,value=latest-ultra-lite,enable=${{ github.ref == 'refs/heads/main' }} - name: Build and push Dockerfile-ultra-lite uses: docker/build-push-action@v6 - if: github.ref != 'refs/heads/main' + if: github.ref == 'refs/heads/main' with: context: . file: ./Dockerfile-ultra-lite @@ -95,7 +95,7 @@ jobs: - name: Generate tags fat id: meta3 uses: docker/metadata-action@v5 - if: github.ref != 'refs/heads/main' + if: github.ref == 'refs/heads/main' with: images: | ghcr.io/${{ steps.repoowner.outputs.lowercase }}/s-pdf @@ -106,7 +106,7 @@ jobs: type=raw,value=latest-fat,enable=${{ github.ref == 'refs/heads/master' }} - name: Build and push main Dockerfile fat uses: docker/build-push-action@v6 - if: github.ref != 'refs/heads/main' + if: github.ref == 'refs/heads/main' with: builder: ${{ steps.buildx.outputs.name }} context: .