mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
Add CPU only Docker image (#1573)
Co-authored-by: Reuben Morais <reuben.morais@gmail.com>
This commit is contained in:
co-authored by
Reuben Morais
parent
27cf388a79
commit
6048959e24
@@ -14,6 +14,9 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
arch: ["amd64"]
|
||||
base:
|
||||
- "nvcr.io/nvidia/pytorch:22.03-py3" # GPU enabled
|
||||
- "ubuntu:20.04" # CPU only
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Log in to the Container registry
|
||||
@@ -28,6 +31,11 @@ jobs:
|
||||
set -ex
|
||||
base="ghcr.io/coqui-ai/tts"
|
||||
tags="" # PR build
|
||||
|
||||
if [[ ${{ matrix.base }} = "ubuntu:20.04" ]]; then
|
||||
base="ghcr.io/coqui-ai/tts-cpu"
|
||||
fi
|
||||
|
||||
if [[ "${{ startsWith(github.ref, 'refs/heads/') }}" = "true" ]]; then
|
||||
# Push to branch
|
||||
github_ref="${{ github.ref }}"
|
||||
@@ -53,4 +61,5 @@ jobs:
|
||||
context: .
|
||||
platforms: linux/${{ matrix.arch }}
|
||||
push: ${{ github.event_name == 'push' }}
|
||||
tags: ${{ steps.compute-tag.outputs.tags }}
|
||||
build-args: "BASE=${{ matrix.base }}"
|
||||
tags: ${{ steps.compute-tag.outputs.tags }}
|
||||
Reference in New Issue
Block a user