|
14 | 14 | required: true
|
15 | 15 |
|
16 | 16 | 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: |
18 | 46 | name: Build and push image
|
19 |
| - runs-on: ubuntu-latest |
| 47 | + runs-on: ubuntu-24.04-arm |
20 | 48 | permissions:
|
21 | 49 | contents: read
|
22 | 50 | id-token: write # needed for signing the images with GitHub OIDC Token
|
|
38 | 66 |
|
39 | 67 | - name: Build and push image
|
40 | 68 | 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 . |
43 | 71 | 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