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.
This commit is contained in:
Viktor Barzin 2026-02-28 18:53:08 +00:00
parent c24ae7e8df
commit e231dbace4
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 2 additions and 4 deletions

View file

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

View file

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