feat: enhance docker build caching with cache-from and cache-to options

This commit is contained in:
Nawaz Dhandala
2026-03-06 19:13:23 +00:00
parent 2f0e4c0196
commit 707bfd62e7

View File

@@ -98,10 +98,11 @@ build_variant() {
local -a args
args=(
docker buildx build
--no-cache
--file "$DOCKERFILE"
--platform "$PLATFORMS"
--push
--cache-from "type=gha,scope=${IMAGE}-${variant_prefix:-community}"
--cache-to "type=gha,mode=max,scope=${IMAGE}-${variant_prefix:-community}"
)
args+=(