From 6c11b5a92df607f8eaab9d30d535d8bec39fd500 Mon Sep 17 00:00:00 2001 From: WeberJulian Date: Thu, 16 Nov 2023 11:41:24 +0100 Subject: [PATCH] Fix CI --- .github/workflows/build-and-push-to-ghcr.yml | 47 +------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/.github/workflows/build-and-push-to-ghcr.yml b/.github/workflows/build-and-push-to-ghcr.yml index 4a7bdca..c023672 100644 --- a/.github/workflows/build-and-push-to-ghcr.yml +++ b/.github/workflows/build-and-push-to-ghcr.yml @@ -4,7 +4,7 @@ on: branches: [main] pull_request: jobs: - build-and-push-to-ghcr-cuda117: + build-and-push-to-ghcr-cuda118: runs-on: ubuntu-22.04 steps: - @@ -49,51 +49,6 @@ jobs: tags: ghcr.io/coqui-ai/xtts-streaming-server:latest, ghcr.io/coqui-ai/xtts-streaming-server:main-${{ github.sha }} #build-args: - build-and-push-to-ghcr-cuda118: - runs-on: ubuntu-22.04 - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: 'Login to GitHub Container Registry' - run: | - set -xe - docker login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io - - - name: 'Remove cache' - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - - name: Build only for PR cuda 11.8 - if: github.ref != 'refs/heads/main' - uses: docker/build-push-action@v5 - with: - context: "{{defaultContext}}:server" - file: Dockerfile.cuda118 - push: false # Do not push image for PR - cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-latest-cuda118; type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-cuda118-${{ github.event.number }} - cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-cuda118-${{ github.event.number }} - - - name: Build and Push image cuda 11.8 - if: github.ref == 'refs/heads/main' - uses: docker/build-push-action@v5 - with: - context: "{{defaultContext}}:server" - file: Dockerfile.cuda118 - push: true # Push if merged - cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-latest-cuda118 - cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-latest-cuda118 - tags: ghcr.io/coqui-ai/xtts-streaming-server:latest-cuda118, ghcr.io/coqui-ai/xtts-streaming-server:main-cuda118-${{ github.sha }} - #build-args: - build-and-push-to-ghcr-cuda121: runs-on: ubuntu-22.04 steps: