Skip to content

Commit 3742f31

Browse files
committed
Fix vLLM image build workflow
Upstream docker files have been combined into a single file.
1 parent 35420fd commit 3742f31

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

.github/workflows/build-push-vllm-cpu.yml

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ on:
1414
required: true
1515

1616
jobs:
17-
build_push_x86_image:
17+
build_push_image:
1818
name: Build and push image
1919
runs-on: ubuntu-latest
2020
permissions:
2121
contents: read
2222
id-token: write # needed for signing the images with GitHub OIDC Token
2323
packages: write # required for pushing container images
2424
security-events: write # required for pushing SARIF files
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
platform:
29+
- linux/amd64
30+
- linux/arm64
2531
steps:
2632
- name: Check out the vLLM repository
2733
uses: actions/checkout@v5
@@ -38,34 +44,6 @@ jobs:
3844

3945
- name: Build and push image
4046
run: |
41-
IMAGE=ghcr.io/stackhpc/vllm-cpu:${{ inputs.vllm_ref }}
42-
docker build -f docker/Dockerfile.cpu -t $IMAGE --shm-size=4g .
43-
docker push $IMAGE
44-
45-
build_push_arm64_image:
46-
name: Build and push image
47-
runs-on: ubuntu-24.04-arm
48-
permissions:
49-
contents: read
50-
id-token: write # needed for signing the images with GitHub OIDC Token
51-
packages: write # required for pushing container images
52-
security-events: write # required for pushing SARIF files
53-
steps:
54-
- name: Check out the vLLM repository
55-
uses: actions/checkout@v5
56-
with:
57-
repository: vllm-project/vllm
58-
ref: ${{ inputs.vllm_ref }}
59-
60-
- name: Login to GitHub Container Registry
61-
uses: docker/login-action@v3
62-
with:
63-
registry: ghcr.io
64-
username: ${{ github.actor }}
65-
password: ${{ secrets.GITHUB_TOKEN }}
66-
67-
- name: Build and push image
68-
run: |
69-
IMAGE=ghcr.io/stackhpc/vllm-cpu:${{ inputs.vllm_ref }}-arm64
70-
docker build -f docker/Dockerfile.arm -t $IMAGE --shm-size=4g .
47+
IMAGE=ghcr.io/stackhpc/vllm-cpu:${{ inputs.vllm_ref }}${{ matrix.platform == 'linux/amd64' && '' || '-arm64' }}
48+
docker buildx build --platform ${{ matrix.platform }} -f docker/Dockerfile.cpu -t $IMAGE --shm-size=4g .
7149
docker push $IMAGE

0 commit comments

Comments
 (0)