From 4a0fc18c60fb3ccb77dc8fed8c6a562ce2317d3e Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 28 Feb 2026 17:56:52 +0000 Subject: [PATCH] [ci skip] add BuildKit layer caching and dual-push to build-cli pipeline --- .woodpecker/build-cli.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build-cli.yml b/.woodpecker/build-cli.yml index cca155b6..6b81bd7d 100644 --- a/.woodpecker/build-cli.yml +++ b/.woodpecker/build-cli.yml @@ -15,7 +15,20 @@ steps: username: "viktorbarzin" password: from_secret: dockerhub-pat - repo: viktorbarzin/infra + 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_from: type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache + cache_to: type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache,mode=max + buildkit_config: | + [registry."registry.viktorbarzin.lan:5050"] + http = true + insecure = true