Skip to content

Commit 3ae32b4

Browse files
committed
Improve docker imaging
Build and push docker images for PRs marked with `ok-to-image` also
1 parent e21d475 commit 3ae32b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish-docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
- 'docs/**'
1111
- '**/*.md'
1212
pull_request:
13+
types:
14+
- opened
15+
- synchronize
16+
- reopened
17+
- labeled
1318
paths-ignore:
1419
- 'docs/**'
1520
- '**/*.md'
@@ -26,6 +31,7 @@ env:
2631
jobs:
2732
buildAndPush:
2833
runs-on: ubuntu-latest
34+
if: ${{ github.event.label.name == 'ok-to-image' }} || ${{ github.event.label.name == 'ok-to-🐳' }} || ${{ github.ref == 'refs/heads/main' }}
2935
steps:
3036
- uses: actions/checkout@v4
3137
with:

0 commit comments

Comments
 (0)