[ci skip] add BuildKit layer caching and dual-push to build-cli pipeline

This commit is contained in:
Viktor Barzin 2026-02-28 17:56:52 +00:00
parent 2102ffdb8b
commit 4a0fc18c60

View file

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