From e231dbace42c45ec90c0af0ce4cb63208219d515 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 28 Feb 2026 18:53:08 +0000 Subject: [PATCH] fix: use cache_images instead of cache_from to avoid comma splitting The plugin-docker-buildx (Codeberg version) changed CacheFrom from string to StringSlice, which causes urfave/cli to split on commas. The cache_images setting properly handles registry refs by generating both --cache-from and --cache-to flags automatically. --- .woodpecker/build-cli.yml | 3 +-- .woodpecker/f1-stream.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.woodpecker/build-cli.yml b/.woodpecker/build-cli.yml index 1524cf0c..44081d4c 100644 --- a/.woodpecker/build-cli.yml +++ b/.woodpecker/build-cli.yml @@ -26,8 +26,7 @@ steps: dockerfile: cli/Dockerfile context: cli auto_tag: true - cache_from: "type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache" - cache_to: "type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache,mode=max" + cache_images: registry.viktorbarzin.lan:5050/infra:buildcache buildkit_config: | [registry."registry.viktorbarzin.lan:5050"] http = true diff --git a/.woodpecker/f1-stream.yml b/.woodpecker/f1-stream.yml index 230c0b75..98820b5a 100644 --- a/.woodpecker/f1-stream.yml +++ b/.woodpecker/f1-stream.yml @@ -29,8 +29,7 @@ steps: platforms: linux/amd64 provenance: false tags: latest - cache_from: "type=registry,ref=registry.viktorbarzin.lan:5050/f1-stream:buildcache" - cache_to: "type=registry,ref=registry.viktorbarzin.lan:5050/f1-stream:buildcache,mode=max" + cache_images: registry.viktorbarzin.lan:5050/f1-stream:buildcache buildkit_config: | [registry."registry.viktorbarzin.lan:5050"] http = true