Skip to content

Commit 44cb686

Browse files
committed
Add RunPod worker vLLM build workflow
1 parent eda72d3 commit 44cb686

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build RunPod worker vLLM Qwen3.6
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
packages: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
20+
- name: Log in to GHCR
21+
uses: docker/login-action@v3
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Prepare worker-vllm
28+
run: |
29+
git clone --depth 1 https://github.com/runpod-workers/worker-vllm.git worker-vllm
30+
python3 - <<'PY'
31+
from pathlib import Path
32+
path = Path("worker-vllm/Dockerfile")
33+
text = path.read_text()
34+
text = text.replace(
35+
'RUN python3 -m pip install --upgrade pip && \\\n'
36+
' python3 -m pip install "vllm[flashinfer]==0.16.0" --extra-index-url https://download.pytorch.org/whl/cu129',
37+
'RUN python3 -m pip install --upgrade pip && \\\n'
38+
' python3 -m pip install -U vllm --pre --index-url https://pypi.org/simple --extra-index-url https://wheels.vllm.ai/nightly',
39+
)
40+
text = text.replace(
41+
'RUN if [ "${VLLM_NIGHTLY}" = "true" ]; then \\\n'
42+
' pip install -U vllm --pre --index-url https://pypi.org/simple --extra-index-url https://wheels.vllm.ai/nightly && \\\n'
43+
' apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* && \\\n'
44+
' pip install git+https://github.com/huggingface/transformers.git; \\\n'
45+
'fi',
46+
'RUN if [ "${VLLM_NIGHTLY}" = "true" ]; then \\\n'
47+
' apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* && \\\n'
48+
' pip install git+https://github.com/huggingface/transformers.git; \\\n'
49+
'fi',
50+
)
51+
path.write_text(text)
52+
PY
53+
54+
- name: Build and push image
55+
uses: docker/build-push-action@v6
56+
with:
57+
context: worker-vllm
58+
platforms: linux/amd64
59+
push: true
60+
build-args: |
61+
VLLM_NIGHTLY=true
62+
tags: ghcr.io/textcortex/runpod-worker-vllm-qwen36:nightly-20260427

0 commit comments

Comments
 (0)