Use variable for REGISTRY_CACHE

This commit is contained in:
Aleksandar Puharic 2023-04-11 12:59:28 +02:00
parent 4d712f7861
commit 5b75b4119e
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

@ -56,7 +56,7 @@ function "get-cache-to" {
params = [version]
result = [
"type=gha,mode=max,scope=${version}_${BAKE_LOCAL_PLATFORM}",
"type=registry,mode=max,ref=docker.io/nlss/wordpress-cache:${sha1("${version}-${BAKE_LOCAL_PLATFORM}")}"
"type=registry,mode=max,ref=${REGISTRY_CACHE}:${sha1("${version}-${BAKE_LOCAL_PLATFORM}")}"
]
}