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.
33 lines
800 B
YAML
33 lines
800 B
YAML
when:
|
|
event: push
|
|
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
attempts: 5
|
|
backoff: 10s
|
|
|
|
steps:
|
|
- name: build-image
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
username: "viktorbarzin"
|
|
password:
|
|
from_secret: dockerhub-pat
|
|
repo:
|
|
- viktorbarzin/infra
|
|
- registry.viktorbarzin.lan:5050/infra
|
|
logins:
|
|
- registry: https://index.docker.io/v1/
|
|
username: viktorbarzin
|
|
password:
|
|
from_secret: dockerhub-pat
|
|
dockerfile: cli/Dockerfile
|
|
context: cli
|
|
auto_tag: true
|
|
cache_images: registry.viktorbarzin.lan:5050/infra:buildcache
|
|
buildkit_config: |
|
|
[registry."registry.viktorbarzin.lan:5050"]
|
|
http = true
|
|
insecure = true
|