Release model-runner images for CE #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release model-runner images for CE | ||
| run-name: Release model-runner images for CE | ||
| on: | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
| - name: Log in to DockerHub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ vars.DOCKERPUBLICBOT_USERNAME }} | ||
| password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }} | ||
| - name: Set up Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| with: | ||
| version: "lab:latest" | ||
| driver: cloud | ||
| endpoint: "docker/make-product-smarter" | ||
| install: true | ||
| - name: Build CPU image | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| file: Dockerfile | ||
| platforms: linux/amd64, linux/arm64 | ||
| push: false | ||
| sbom: true | ||
| provenance: mode=max | ||
| # tags: "docker/model-runner:test-cpu" | ||
| - name: Build CUDA image | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| file: Dockerfile | ||
| platforms: linux/amd64, linux/arm64 | ||
| build-args: | ||
| - LLAMA_SERVER_VARIANT=cuda | ||
| - BASE_IMAGE=nvidia/cuda:12.9.0-cudnn-runtime-ubuntu24.04 | ||
| push: false | ||
| sbom: true | ||
| provenance: mode=max | ||
| # tags: "docker/model-runner:test-cpu" | ||