From 0baa1dc0a64351cdb05b20cc296a995c052ea2f9 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Mon, 19 Feb 2024 04:53:39 -0500 Subject: [PATCH] update ci to build and gpu docker image to ghcr --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7856412..d33d584 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - build-and-push-docker: + build-and-push-docker-cpu: needs: [run-tests, check-code-format] runs-on: ubuntu-22.04 if: github.event_name == 'push' && github.ref == 'refs/heads/develop' @@ -100,6 +100,31 @@ jobs: file: docker/Dockerfile.cpu push: true tags: ghcr.io/makaveli10/whisperlive-cpu:latest + + build-and-push-docker-gpu: + needs: [run-tests, check-code-format] + runs-on: ubuntu-22.04 + if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main') + 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: 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.gpu + push: true + tags: ghcr.io/makaveli10/whisperlive-gpu:latest publish-to-pypi: needs: [run-tests, check-code-format]