Skip to content

Commit

Permalink
fix(docker): No build or publish in pull_request events
Browse files Browse the repository at this point in the history
Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro authored and sschuberth committed Nov 14, 2023
1 parent cec3ec7 commit 6ce0978
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ on:
- 'Dockerfile'
- '.github/workflows/docker-ort.yml'
push:
branches:
- 'main'
tags:
- '*'

Expand Down Expand Up @@ -331,7 +333,7 @@ jobs:
with:
context: .
target: minimal
push: true
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
load: false
build-args: |
NODEJS_VERSION=${{ env.NODEJS_VERSION }}
Expand Down Expand Up @@ -397,7 +399,7 @@ jobs:
with:
context: .
target: run
push: true
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
load: false
tags: |
${{ steps.meta-ort.outputs.tags }}
Expand Down

0 comments on commit 6ce0978

Please sign in to comment.