[ci skip] add BuildKit layer caching and dual-push to build-cli pipeline
This commit is contained in:
parent
2102ffdb8b
commit
4a0fc18c60
1 changed files with 14 additions and 1 deletions
|
|
@ -15,7 +15,20 @@ steps:
|
||||||
username: "viktorbarzin"
|
username: "viktorbarzin"
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub-pat
|
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
|
dockerfile: cli/Dockerfile
|
||||||
context: cli
|
context: cli
|
||||||
auto_tag: true
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue