mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: enhance docker build caching with cache-from and cache-to options
This commit is contained in:
@@ -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+=(
|
||||
|
||||
Reference in New Issue
Block a user