diff --git a/.github/actions/docker-build-and-push/action.yaml b/.github/actions/docker-build-and-push/action.yaml index 6c2763060b0..4ca863ff282 100644 --- a/.github/actions/docker-build-and-push/action.yaml +++ b/.github/actions/docker-build-and-push/action.yaml @@ -92,7 +92,7 @@ runs: if: ${{ (github.event_name == 'push' && github.ref_type == 'branch') || github.event_name == 'schedule' }} uses: docker/bake-action@v3 with: - push: ${{ (github.event_name == 'schedule' || github.ref_name == github.event.repository.default_branch || github.event_name == 'push') && inputs.allow-push == 'true' }} + push: ${{ inputs.allow-push == 'true' }} files: | docker/${{ inputs.bake-target }}/docker-bake.hcl ${{ steps.meta-prebuilt.outputs.bake-file }}