From c9b0d01250df07de0495c0ca3c1e8bac1126fe8d Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 12 Jun 2023 16:20:14 +0100 Subject: [PATCH] Update push-docker.yml --- .github/workflows/push-docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index ee7596ae..7b62867c 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -84,6 +84,7 @@ jobs: - name: Generate tags ultra-lite id: meta2 uses: docker/metadata-action@v4.4.0 + if: github.ref != 'refs/heads/main' with: images: | ${{ secrets.DOCKER_HUB_USERNAME }}/s-pdf @@ -95,6 +96,7 @@ jobs: - name: Build and push Dockerfile-ultra-lite uses: docker/build-push-action@v4.0.0 + if: github.ref != 'refs/heads/main' with: context: . file: ./Dockerfile-ultra-lite @@ -110,6 +112,7 @@ jobs: - name: Generate tags lite id: meta3 uses: docker/metadata-action@v4.4.0 + if: github.ref != 'refs/heads/main' with: images: | ${{ secrets.DOCKER_HUB_USERNAME }}/s-pdf @@ -121,6 +124,7 @@ jobs: - name: Build and push Dockerfile-lite uses: docker/build-push-action@v4.0.0 + if: github.ref != 'refs/heads/main' with: context: . file: ./Dockerfile-lite @@ -129,4 +133,4 @@ jobs: cache-to: type=gha,mode=max tags: ${{ steps.meta3.outputs.tags }} labels: ${{ steps.meta3.outputs.labels }} - platforms: linux/amd64,linux/arm64/v8 \ No newline at end of file + platforms: linux/amd64,linux/arm64/v8