forked from vllm-project/vllm-ascend
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (83 loc) · 2.62 KB
/
Copy pathschedule_lint_image_build.yaml
File metadata and controls
93 lines (83 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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