Refactor Docker workflows to streamline build commands and add model download variable

This commit is contained in:
remsky 2025-02-07 02:42:39 -07:00
parent 6134802d2c
commit 9a27c745cd
2 changed files with 6 additions and 2 deletions

View file

@ -67,8 +67,7 @@ jobs:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
BUILDKIT_STEP_LOG_MAX_SIZE: 10485760 BUILDKIT_STEP_LOG_MAX_SIZE: 10485760
VERSION: ${{ needs.prepare-release.outputs.version }} VERSION: ${{ needs.prepare-release.outputs.version }}
run: | run: docker buildx bake --push
docker buildx bake --push
create-release: create-release:
needs: [prepare-release, build-images] needs: [prepare-release, build-images]

View file

@ -15,11 +15,16 @@ variable "REPO" {
default = "kokoro-fastapi" default = "kokoro-fastapi"
} }
variable "DOWNLOAD_MODEL" {
default = "true"
}
# Common settings shared between targets # Common settings shared between targets
target "_common" { target "_common" {
context = "." context = "."
args = { args = {
DEBIAN_FRONTEND = "noninteractive" DEBIAN_FRONTEND = "noninteractive"
DOWNLOAD_MODEL = "${DOWNLOAD_MODEL}"
} }
cache-from = ["type=registry,ref=${REGISTRY}/${OWNER}/${REPO}-cache"] cache-from = ["type=registry,ref=${REGISTRY}/${OWNER}/${REPO}-cache"]
cache-to = ["type=registry,ref=${REGISTRY}/${OWNER}/${REPO}-cache,mode=max"] cache-to = ["type=registry,ref=${REGISTRY}/${OWNER}/${REPO}-cache,mode=max"]