diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index df980c7..c725989 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -2,9 +2,12 @@ name: Push on: push: branches: - - "**" + - main tags: - "v*.*.*" + pull_request: + branches: + - main workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }}-push @@ -32,7 +35,7 @@ jobs: - uses: docker/build-push-action@v4.1.1 with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha