mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
Refactor Docker workflows to streamline build commands and add model download variable
This commit is contained in:
parent
6134802d2c
commit
9a27c745cd
2 changed files with 6 additions and 2 deletions
3
.github/workflows/docker-publish.yml
vendored
3
.github/workflows/docker-publish.yml
vendored
|
@ -67,8 +67,7 @@ jobs:
|
|||
DOCKER_BUILDKIT: 1
|
||||
BUILDKIT_STEP_LOG_MAX_SIZE: 10485760
|
||||
VERSION: ${{ needs.prepare-release.outputs.version }}
|
||||
run: |
|
||||
docker buildx bake --push
|
||||
run: docker buildx bake --push
|
||||
|
||||
create-release:
|
||||
needs: [prepare-release, build-images]
|
||||
|
|
|
@ -15,11 +15,16 @@ variable "REPO" {
|
|||
default = "kokoro-fastapi"
|
||||
}
|
||||
|
||||
variable "DOWNLOAD_MODEL" {
|
||||
default = "true"
|
||||
}
|
||||
|
||||
# Common settings shared between targets
|
||||
target "_common" {
|
||||
context = "."
|
||||
args = {
|
||||
DEBIAN_FRONTEND = "noninteractive"
|
||||
DOWNLOAD_MODEL = "${DOWNLOAD_MODEL}"
|
||||
}
|
||||
cache-from = ["type=registry,ref=${REGISTRY}/${OWNER}/${REPO}-cache"]
|
||||
cache-to = ["type=registry,ref=${REGISTRY}/${OWNER}/${REPO}-cache,mode=max"]
|
||||
|
|
Loading…
Add table
Reference in a new issue