Skip to content

Commit 908b159

Browse files
committed
Test arm image build
1 parent 6598a05 commit 908b159

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

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

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

1616
jobs:
17-
build_push_image:
17+
# build_push_x86_image:
18+
# name: Build and push image
19+
# runs-on: ubuntu-latest
20+
# permissions:
21+
# contents: read
22+
# id-token: write # needed for signing the images with GitHub OIDC Token
23+
# packages: write # required for pushing container images
24+
# security-events: write # required for pushing SARIF files
25+
# steps:
26+
# - name: Check out the vLLM repository
27+
# uses: actions/checkout@v4
28+
# with:
29+
# repository: vllm-project/vllm
30+
# ref: ${{ inputs.vllm_ref }}
31+
32+
# - name: Login to GitHub Container Registry
33+
# uses: docker/login-action@v3
34+
# with:
35+
# registry: ghcr.io
36+
# username: ${{ github.actor }}
37+
# password: ${{ secrets.GITHUB_TOKEN }}
38+
39+
# - name: Build and push image
40+
# run: |
41+
# IMAGE=ghcr.io/stackhpc/vllm-cpu:${{ inputs.vllm_ref }}
42+
# docker build -f Dockerfile.cpu -t $IMAGE --shm-size=4g .
43+
# docker push $IMAGE
44+
45+
build_push_arm64_image:
1846
name: Build and push image
19-
runs-on: ubuntu-latest
47+
runs-on: ubuntu-24.04-arm
2048
permissions:
2149
contents: read
2250
id-token: write # needed for signing the images with GitHub OIDC Token
@@ -38,36 +66,6 @@ jobs:
3866

3967
- name: Build and push image
4068
run: |
41-
IMAGE=ghcr.io/stackhpc/vllm-cpu:${{ inputs.vllm_ref }}
42-
docker build -f Dockerfile.cpu -t $IMAGE --shm-size=4g .
69+
IMAGE=ghcr.io/stackhpc/vllm-cpu:${{ inputs.vllm_ref }}-arm64
70+
docker build -f Dockerfile.arm -t $IMAGE --shm-size=4g .
4371
docker push $IMAGE
44-
45-
# - name: Calculate metadata for image
46-
# id: image-meta
47-
# uses: docker/metadata-action@v5
48-
# with:
49-
# images: ghcr.io/stackhpc/vllm-cpu
50-
# # Produce the branch name or tag and the SHA as tags
51-
# tags: |
52-
# type=raw,value=${{ inputs.vllm_ref }}
53-
54-
# - name: Build and push image x86 image
55-
# uses: azimuth-cloud/github-actions/docker-multiarch-build-push@master
56-
# with:
57-
# cache-key: vllm-cpu
58-
# file: Dockerfile.cpu
59-
# platforms: linux/amd64
60-
# push: true
61-
# tags: ${{ steps.image-meta.outputs.tags }}
62-
# labels: ${{ steps.image-meta.outputs.labels }}
63-
64-
# # TODO: Test whether this works
65-
# # - name: Build and push Arm image
66-
# # uses: azimuth-cloud/github-actions/docker-multiarch-build-push@master
67-
# # with:
68-
# # cache-key: vllm-cpu
69-
# # file: Dockerfile.cpu
70-
# # platforms: linux/arm64
71-
# # push: true
72-
# # tags: ${{ steps.image-meta.outputs.tags }}
73-
# # labels: ${{ steps.image-meta.outputs.labels }}

0 commit comments

Comments
 (0)