diff --git a/.github/workflows/schedule_image_build_and_push.yaml b/.github/workflows/schedule_image_build_and_push.yaml index 640385d7..94e77728 100644 --- a/.github/workflows/schedule_image_build_and_push.yaml +++ b/.github/workflows/schedule_image_build_and_push.yaml @@ -11,36 +11,6 @@ # - Publish when tag with v* (pep440 version) ===> vllm-ascend:v1.2.3 / vllm-ascend:v1.2.3rc1 name: Image Build and Push on: - push: - # Publish image when tagging, the Dockerfile in tag will be build as tag image - branches: - - 'releases/*' - tags: - - 'v*' - paths: - - '.github/workflows/schedule_image_build_and_push.yaml' - - 'Dockerfile*' - - 'vllm_ascend/**' - - 'setup.py' - - 'pyproject.toml' - - 'requirements.txt' - - 'cmake/**' - - 'CMakeLists.txt' - - 'csrc/**' - pull_request: - branches: - - 'releases/*' - paths: - - '.github/workflows/schedule_image_build_and_push.yaml' - - 'Dockerfile*' - - 'vllm_ascend/**' - - 'setup.py' - - 'pyproject.toml' - - 'requirements.txt' - - 'cmake/**' - - 'CMakeLists.txt' - - 'csrc/**' - types: [ labeled, synchronize ] workflow_dispatch: inputs: tag: @@ -63,7 +33,6 @@ concurrency: jobs: image_build: name: Image Build and Push - if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'image-build') }} strategy: matrix: build_meta: @@ -90,7 +59,7 @@ jobs: dockerfile: ${{ matrix.build_meta.dockerfile }} suffix: ${{ matrix.build_meta.suffix }} quay_username: ${{ vars.QUAY_USERNAME }} - should_push: ${{ github.repository_owner == 'vllm-project' && github.event_name == 'push'}} + should_push: ${{ github.repository_owner == 'vllm-project'}} workflow_dispatch_tag: ${{ inputs.tag }} secrets: QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}