Skip to content

Commit 45d4e5f

Browse files
author
steebchen
committed
ci: build images on branch checks
1 parent 6269354 commit 45d4e5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-images.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ name: Publish Images
33
on:
44
push:
55
branches:
6-
- main
6+
- "**"
77
tags:
88
- "v*"
9+
pull_request:
910
workflow_dispatch:
1011

1112
permissions:
@@ -59,6 +60,6 @@ jobs:
5960
context: ${{ matrix.context }}
6061
file: ${{ matrix.file }}
6162
platforms: linux/amd64
62-
push: true
63+
push: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}
6364
tags: ${{ steps.meta.outputs.tags }}
6465
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)