From d6bce7a5b9a9d70ed1ca5f2f4f59952a1d1e204c Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 31 Jul 2024 17:18:22 +0300 Subject: [PATCH] chore: only push on master commit in docker workflow --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 354f6b0..98a5218 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -30,12 +30,12 @@ jobs:          username: ${{ github.repository_owner }}          password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push image + - name: Build image and push if commit on master        uses: docker/build-push-action@v6        with:         context: .          platforms: linux/amd64, linux/arm64 -          push: true +          push: ${{ github.ref == 'refs/heads/master' }}          tags: ghcr.io/havenweb/haven:${{ steps.get_tag.outputs.tagname }}, ghcr.io/havenweb/haven:latest