Skip to content

Commit

Permalink
trigger workflow on pull request (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotanpatrich authored Oct 13, 2024
1 parent 88c67f0 commit 2e89a4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
# supports manualy running a workflow
workflow_dispatch:

Expand Down Expand Up @@ -51,7 +54,7 @@ jobs:
with:
context: ${{ matrix.dockerpath }}
file: ${{ matrix.dockerpath }}/Dockerfile
push: true
push: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down

0 comments on commit 2e89a4a

Please sign in to comment.