From 01a3fa8cfe6615cbcb513e00d4147a5d653bba64 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 1 Jun 2024 14:12:57 +0100 Subject: [PATCH] Update push-docker.yml --- .github/workflows/push-docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index e4509f98..bf53be99 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -115,6 +115,7 @@ jobs: - name: Generate tags fat id: meta3 uses: docker/metadata-action@v5 + if: github.ref != 'refs/heads/main' with: images: | ${{ secrets.DOCKER_HUB_USERNAME }}/s-pdf @@ -125,6 +126,7 @@ jobs: - name: Build and push main Dockerfile fat uses: docker/build-push-action@v5 + if: github.ref != 'refs/heads/main' with: builder: ${{ steps.buildx.outputs.name }} context: . @@ -135,4 +137,4 @@ jobs: tags: ${{ steps.meta3.outputs.tags }} labels: ${{ steps.meta3.outputs.labels }} build-args: VERSION_TAG=${{ steps.versionNumber.outputs.versionNumber }} - platforms: linux/amd64,linux/arm64/v8 \ No newline at end of file + platforms: linux/amd64,linux/arm64/v8