Skip to content
Snippets Groups Projects
Verified Commit 33e472a5 authored by Konrad Botor's avatar Konrad Botor
Browse files

Moved BuildKit cache to separate registries

parent 5a291802
No related branches found
No related tags found
1 merge request!54Moved BuildKit cache to separate registries
Pipeline #96487 passed
...@@ -35,14 +35,14 @@ function "generate-tags" { ...@@ -35,14 +35,14 @@ function "generate-tags" {
function "generate-cache-from" { function "generate-cache-from" {
params = [target, local_tag] params = [target, local_tag]
result = [ result = [
notempty(CI_REGISTRY_IMAGE) ? "type=registry,ref=${CI_REGISTRY_IMAGE}/${target}:${local_tag}-cache" : "${target}:${local_tag}", notempty(CI_REGISTRY_IMAGE) ? "type=registry,ref=${CI_REGISTRY_IMAGE}/${target}/cache:${local_tag}" : "${target}:${local_tag}",
] ]
} }
function "generate-cache-to" { function "generate-cache-to" {
params = [target, local_tag] params = [target, local_tag]
result = [ result = [
notempty(CI_REGISTRY_IMAGE) ? "type=registry,mode=max,ref=${CI_REGISTRY_IMAGE}/${target}:${local_tag}-cache" : "type=inline", notempty(CI_REGISTRY_IMAGE) ? "type=registry,mode=max,ref=${CI_REGISTRY_IMAGE}/${target}/cache:${local_tag}" : "type=inline",
] ]
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment