|
14 | 14 | required: true |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - build_push_x86_image: |
| 17 | + build_push_image: |
18 | 18 | name: Build and push image |
19 | 19 | runs-on: ubuntu-latest |
20 | 20 | permissions: |
21 | 21 | contents: read |
22 | 22 | id-token: write # needed for signing the images with GitHub OIDC Token |
23 | 23 | packages: write # required for pushing container images |
24 | 24 | security-events: write # required for pushing SARIF files |
| 25 | + strategy: |
| 26 | + fail-fast: false |
| 27 | + matrix: |
| 28 | + platform: |
| 29 | + - linux/amd64 |
| 30 | + - linux/arm64 |
25 | 31 | steps: |
26 | 32 | - name: Check out the vLLM repository |
27 | 33 | uses: actions/checkout@v5 |
|
38 | 44 |
|
39 | 45 | - name: Build and push image |
40 | 46 | 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 . |
71 | 49 | docker push $IMAGE |
0 commit comments