Skip to content

Commit 20a7282

Browse files
committed
fix(ci): handle pr container builds
1 parent 5dad8fd commit 20a7282

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/container.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,19 @@ jobs:
4343
flavor: |
4444
latest=true
4545
46+
- name: Build image (PR)
47+
if: github.event_name == 'pull_request'
48+
uses: docker/build-push-action@v5
49+
with:
50+
context: .
51+
file: Containerfile
52+
load: true
53+
platforms: linux/amd64
54+
tags: ${{ steps.meta.outputs.tags }}
55+
labels: ${{ steps.meta.outputs.labels }}
56+
4657
- name: Build and push
58+
if: github.event_name != 'pull_request'
4759
uses: docker/build-push-action@v5
4860
with:
4961
context: .

0 commit comments

Comments
 (0)