Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/ai-runner-live-pipelines-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}},prefix=live-app-${{ matrix.pipeline }}-

- name: Build and push pipeline app image
id: build
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:runner"
Expand All @@ -156,7 +157,38 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=livepeer/ai-runner:live-app-${{ matrix.pipeline }}-dockerbuildcache
cache-from: |
type=registry,ref=livepeer/ai-runner:live-app-${{ matrix.pipeline }}-dockerbuildcache
livepeer/ai-runner:latest
cache-to: type=registry,ref=livepeer/ai-runner:live-app-${{ matrix.pipeline }}-dockerbuildcache,mode=max

- name: Extract metadata for app image with /models directory
id: meta-models
uses: docker/metadata-action@v5
with:
images: livepeer/ai-runner
tags: |
type=raw,value=live-app-${{ matrix.pipeline }}-with-models,enable={{is_default_branch}}
type=sha,prefix=live-app-${{ matrix.pipeline }}-with-models-
type=ref,event=pr,prefix=live-app-${{ matrix.pipeline }}-with-models-
type=ref,event=tag,prefix=live-app-${{ matrix.pipeline }}-with-models-
type=raw,value=latest,enable={{is_default_branch}},prefix=live-app-${{ matrix.pipeline }}-with-models-

- name: Build and push pipeline app image with /models directory
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:runner"
file: docker/Dockerfile.live-app__PIPELINE__-models-rtx-4090
build-args: |
BASE=livepeer/ai-runner@${{ steps.build.outputs.Digest }}
platforms: linux/amd64
push: true
tags: ${{ steps.meta-models.outputs.tags }}
annotations: ${{ steps.meta-models.outputs.annotations }}
labels: ${{ steps.meta.outputs-models.labels }}
cache-from: |
livepeer/ai-runner@${{ steps.build.outputs.Digest }}
type=registry,ref=livepeer/ai-runner:live-app-${{ matrix.pipeline }}-with-models-dockerbuildcache
cache-to: type=registry,ref=livepeer/ai-runner:live-app-${{ matrix.pipeline }}-dockerbuildcache,mode=max

- name: Notify new build upload
Expand Down
4 changes: 4 additions & 0 deletions runner/docker/Dockerfile.live-app__PIPELINE__-models-rtx-4090
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG BASE
FROM ${BASE}

COPY --from=livepeer/ai-runner-models:latest-tensorrt-rtx-4090 /models /models
Loading