Skip to content

Commit

Permalink
ci: enable merge groups
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Aug 13, 2024
1 parent be1440b commit 2f07af6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish

on:
pull_request:
push:
branches:
- main
workflow_dispatch:
pull_request:
merge_group:

jobs:
docker:
Expand All @@ -14,12 +15,12 @@ jobs:
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
if: github.ref_name == 'main'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.ref_name == 'main' }}
tags: ghcr.io/hermit-os/hermit-toolchain:latest

0 comments on commit 2f07af6

Please sign in to comment.