Skip to content

Commit 19108d0

Browse files
committed
.github/workflows/build.yaml: add pull request CI
1 parent f60f283 commit 19108d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ name: 'Build containers'
33

44
on:
55
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- master
69
push:
10+
branches:
11+
- master
712
paths-ignore:
813
- COPYING
914
- README.md
@@ -53,6 +58,7 @@ jobs:
5358
uses: docker/setup-buildx-action@v2
5459

5560
- name: Login to GCHR
61+
if: github.event_name != 'pull_request'
5662
uses: docker/login-action@v2
5763
with:
5864
registry: ghcr.io
@@ -63,7 +69,7 @@ jobs:
6369
id: build_and_push
6470
uses: docker/bake-action@v3
6571
with:
66-
push: ${{ endsWith(github.ref, 'master') }}
72+
push: ${{ github.event_name != 'pull_request' }}
6773
files: |
6874
docker-bake.hcl
6975
${{ steps.meta.outputs.bake-file }}

0 commit comments

Comments
 (0)