Update ci to build and push teensorrt docker image
Signed-off-by: makaveli10 <vineet.suryan@collabora.com>
This commit is contained in:
@@ -99,6 +99,35 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/collabora/whisperlive-cpu:latest
|
tags: ghcr.io/collabora/whisperlive-cpu:latest
|
||||||
|
|
||||||
|
build-and-push-docker-tensorrt:
|
||||||
|
needs: [run-tests, check-code-format]
|
||||||
|
timeout-minutes: 20
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker Prune
|
||||||
|
run: docker system prune -af
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Build and push Docker GPU image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: docker/Dockerfile.tensorrt
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/collabora/whisperlive-tensorrt:latest
|
||||||
|
|
||||||
build-and-push-docker-gpu:
|
build-and-push-docker-gpu:
|
||||||
needs: [run-tests, check-code-format, build-and-push-docker-cpu]
|
needs: [run-tests, check-code-format, build-and-push-docker-cpu]
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
|||||||
Reference in New Issue
Block a user