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