From d266fd7b47f8ad70f7f2f78b0b5af4b761151d20 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Sat, 7 Feb 2026 09:32:01 +0800 Subject: [PATCH] [CI] Add workflow support for lint image build (#6489) Support specify commit hash with lint image build workflow - vLLM version: v0.15.0 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.15.0 Signed-off-by: wangxiyuan --- .../workflows/schedule_lint_image_build.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/schedule_lint_image_build.yaml b/.github/workflows/schedule_lint_image_build.yaml index 2a9d66b0..aee7184e 100644 --- a/.github/workflows/schedule_lint_image_build.yaml +++ b/.github/workflows/schedule_lint_image_build.yaml @@ -4,9 +4,15 @@ on: # Runs at 00:00 UTC+8 every day - cron: '0 20 * * *' workflow_dispatch: + inputs: + vllm_hash: + description: 'vLLM base hash' + default: main + required: true + type: string push: paths: - - 'Dockerfile.lint' + - '.github/workflows/dockerfiles/Dockerfile.lint' - 'requirements-lint.txt' - 'requirements-dev.txt' - 'requirements.txt' @@ -55,6 +61,7 @@ jobs: password: ${{ secrets.QUAY_CI_PASSWORD }} - name: Build and push + if: ${{ github.event_name != 'workflow_dispatch' }} uses: docker/build-push-action@v6 with: # For now, we only build amd64 lint image @@ -65,3 +72,18 @@ jobs: labels: ${{ steps.meta.outputs.labels }} tags: ${{ steps.meta.outputs.tags }} provenance: false + + - name: Build and push + if: ${{ github.event_name == 'workflow_dispatch' }} + uses: docker/build-push-action@v6 + with: + # For now, we only build amd64 lint image + platforms: 'linux/amd64' + context: . + file: .github/workflows/dockerfiles/Dockerfile.lint + push: true + labels: ${{ steps.meta.outputs.labels }} + tags: ${{ steps.meta.outputs.tags }} + provenance: false + build-args: | + VLLM_HASH=${{ inputs.vllm_hash }}