From b3defcc52131d5fcaa6e805efa076b009284456e Mon Sep 17 00:00:00 2001 From: Hannes Michalek Date: Wed, 18 Dec 2024 08:33:48 +0100 Subject: [PATCH] Build image on main branch only --- .github/workflows/pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 8383671..6212307 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -34,6 +34,7 @@ jobs: security-events: write # trivy scan needs this frontend-build-image-and-scan: + if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest permissions: contents: read