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
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]

View file

@ -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"]