[v0.18.0][CI] Close build image by pr (#7776)
### What this PR does / why we need it? Close build image by pr This PR is related to https://github.com/vllm-project/vllm-ascend/pull/7775, please merge them together Signed-off-by: hfadzxy <starmoon_zhang@163.com>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user