From 6ce0978ecf1b92bb5cfa58488b546be5dbc2b726 Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Tue, 14 Nov 2023 18:04:12 +0100 Subject: [PATCH] fix(docker): No build or publish in pull_request events Signed-off-by: Helio Chissini de Castro --- .github/workflows/docker-ort.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-ort.yml b/.github/workflows/docker-ort.yml index 890ac337bfb13..1435e572864a8 100644 --- a/.github/workflows/docker-ort.yml +++ b/.github/workflows/docker-ort.yml @@ -27,6 +27,8 @@ on: - 'Dockerfile' - '.github/workflows/docker-ort.yml' push: + branches: + - 'main' tags: - '*' @@ -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 }} @@ -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 }}