Skip to content

Commit 685f21b

Browse files
author
Piotr Stankiewicz
committed
Build model-runner images for CE
Signed-off-by: Piotr Stankiewicz <piotr.stankiewicz@docker.com>
1 parent e6fd394 commit 685f21b

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release model-runner images for CE
2+
run-name: Release model-runner images for CE
3+
4+
on:
5+
pull_request:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Log in to DockerHub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ vars.DOCKERPUBLICBOT_USERNAME }}
19+
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
20+
21+
- name: Set up Buildx
22+
uses: docker/setup-buildx-action@v3
23+
with:
24+
version: "lab:latest"
25+
driver: cloud
26+
endpoint: "docker/make-product-smarter"
27+
install: true
28+
29+
- name: Build CPU image
30+
uses: docker/build-push-action@v5
31+
with:
32+
file: Dockerfile
33+
platforms: linux/amd64, linux/arm64
34+
push: false
35+
sbom: true
36+
provenance: mode=max
37+
# tags: "docker/model-runner:test-cpu"
38+
39+
- name: Build CUDA image
40+
uses: docker/build-push-action@v5
41+
with:
42+
file: Dockerfile
43+
platforms: linux/amd64, linux/arm64
44+
build-args: |
45+
LLAMA_SERVER_VARIANT=cuda
46+
BASE_IMAGE=nvidia/cuda:12.9.0-cudnn-runtime-ubuntu24.04
47+
push: false
48+
sbom: true
49+
provenance: mode=max
50+
# tags: "docker/model-runner:test-cpu"

0 commit comments

Comments
 (0)