From ea0b0a71783c583a426460ef4eea5fba6d5f4402 Mon Sep 17 00:00:00 2001 From: Hugo Stijns Date: Mon, 27 May 2024 15:58:28 +0200 Subject: [PATCH] Build only on all branches --- .github/workflows/build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0f9e756..d1578ad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,8 +2,6 @@ name: Build on: push: - branches: - - develop workflow_dispatch: env: @@ -36,5 +34,5 @@ jobs: uses: docker/build-push-action@v5 with: context: ./apps/${{ matrix.app }} - push: true + push: ${{ github.ref_name == github.event.repository.default_branch }} tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPOSITORY }}/${{ matrix.app }}:latest