-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* push to ghcr * typing-extensions>=4.8.0, use legacy * pr should try to build it too * pr should try to build it too * pr should try to build it too * only push main builds * only push main builds * only push main builds * only push main builds * only push main builds * use workdir * use workdir * use workdir * use workdir * use workdir * use workdir * use workdir * use workdir * fixes for comments * fixes main build cache ref pr will use cache but will not update * add some logs * use numpy 1.24.3 (works locally) * pr caching * pr caching * pr number as cache, remove tags on pr * multiple cache * multiple cache * multiple cache * NUM_THREADS env var
- Loading branch information
1 parent
15cae81
commit 5f3ddd1
Showing
4 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and push to GHCR | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
env: | ||
GHCR_URL: ghcr.io/coqui-ai/xtts-streaming-server | ||
jobs: | ||
build-and-push-to-ghcr: | ||
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: Build only for PR | ||
if: github.ref != 'refs/heads/main' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: "{{defaultContext}}:server" | ||
file: Dockerfile | ||
push: false # Do not push image for PR | ||
cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-latest;type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-${{ github.event.number }} | ||
cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-${{ github.event.number }} | ||
|
||
- name: Build and Push image | ||
if: github.ref == 'refs/heads/main' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: "{{defaultContext}}:server" | ||
file: Dockerfile | ||
push: true # Push if merged | ||
cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-latest | ||
cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-latest | ||
tags: coqui-ai/xtts-streaming-server:latest, coqui-ai/xtts-streaming-server:${{ env.RELEASE_VERSION }}-${{ github.sha }} | ||
#build-args: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
TTS==0.18.2 | ||
TTS==0.19.1 | ||
uvicorn[standard]==0.23.2 | ||
fastapi==0.104.0 | ||
deepspeed==0.8.3 | ||
fastapi==0.95.2 | ||
deepspeed==0.10.3 | ||
pydantic==1.10.13 | ||
python-multipart==0.0.6 | ||
typing-extensions>=4.8.0 | ||
numpy==1.24.3 |