From 22a37e78438b24542261fe9bded3db732c17a05d Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Mon, 3 Jun 2024 11:53:27 -0400 Subject: [PATCH] Update ci to build and push teensorrt docker image Signed-off-by: makaveli10 --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c42b663c..311d8bbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,6 +99,35 @@ jobs: push: true 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: needs: [run-tests, check-code-format, build-and-push-docker-cpu] timeout-minutes: 20