Merge branch 'main' into validate/docker-actions-self-hosted #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Image build lint' | |
| on: | |
| schedule: | |
| # Runs at 00:00 UTC+8 every day | |
| - cron: '0 20 * * *' | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - '.github/vllm-main-verified.commit' | |
| - '.github/workflows/dockerfiles/Dockerfile.lint' | |
| - 'requirements-lint.txt' | |
| - 'requirements-dev.txt' | |
| - 'requirements.txt' | |
| # only cancel in-progress runs of the same workflow | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: vllm-ascend lint image build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Print | |
| run: | | |
| lscpu | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: | | |
| quay.io/ascend-ci/vllm-ascend | |
| tags: lint | |
| flavor: | |
| latest=false | |
| - name: Read verified vLLM commit | |
| id: vllm | |
| run: | | |
| vllm_commit="$(cat .github/vllm-main-verified.commit)" | |
| [ -n "$vllm_commit" ] || { echo "::error::vLLM commit is empty"; exit 1; } | |
| echo "main_commit=$vllm_commit" >> "$GITHUB_OUTPUT" | |
| - name: Build - Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Build - Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Publish - Login to Quay Container Registry | |
| if: ${{ github.repository_owner == 'vllm-project' }} | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: quay.io | |
| username: ${{ vars.QUAY_CI_USERNAME }} | |
| password: ${{ secrets.QUAY_CI_PASSWORD }} | |
| - name: Build and push | |
| if: ${{ github.event_name != 'workflow_dispatch' }} | |
| uses: docker/build-push-action@v7 | |
| 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 }} | |
| build-args: | | |
| VLLM_COMMIT=${{ steps.vllm.outputs.main_commit }} | |
| provenance: false | |
| - name: Build and push | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| uses: docker/build-push-action@v7 | |
| 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 }} | |
| build-args: | | |
| VLLM_COMMIT=${{ steps.vllm.outputs.main_commit }} | |
| provenance: false |