Skip to content

Commit 57bafd6

Browse files
committed
ci: run build job on pull request event
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent ea45c8b commit 57bafd6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
run: CIPLATFORM=${{ env.CI_ARCH }} bash test/run.sh
4343

4444
build-prepare:
45-
if: github.event_name != 'pull_request'
4645
runs-on: ubuntu-24.04
4746
outputs:
4847
components_branch: ${{ env.components_branch }}
@@ -51,8 +50,7 @@ jobs:
5150
- run: echo "Exposing env vars for reusable workflow"
5251

5352
build:
54-
if: github.event_name != 'pull_request'
55-
uses: docker/github-builder/.github/workflows/build.yml@v1
53+
uses: docker/github-builder/.github/workflows/build.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
5654
needs:
5755
- build-prepare
5856
permissions:
@@ -72,7 +70,7 @@ jobs:
7270
WEB_BRANCH=${{ needs.build-prepare.outputs.components_branch }}
7371
PADD_BRANCH=${{ needs.build-prepare.outputs.components_branch }}
7472
platforms: linux/amd64,linux/386,linux/arm/v6,linux/arm/v7,linux/arm64,linux/riscv64
75-
push: true
73+
push: ${{ github.event_name != 'pull_request' }}
7674
set-meta-labels: true
7775
meta-images: |
7876
pihole/pihole

0 commit comments

Comments
 (0)