Skip to content

Commit

Permalink
fix: make sure cacheTo returns proper list (#4253)
Browse files Browse the repository at this point in the history
TimBeyer authored May 12, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c1692db commit 1eacc4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion support/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -77,7 +77,9 @@ function "cacheFrom" {

function "cacheTo" {
params = [repository, flavor]
result = "${BRANCH_NAME == "0.13" || BRANCH_NAME == "main" ? ["${cacheFrom(repository, flavor)},mode=max"] : []}"
result = "${BRANCH_NAME == "0.13" || BRANCH_NAME == "main" ? [
"type=registry,ref=${repository}:_buildcache-${CODENAME}-${flavor},mode=max"
] : []}"
}

##

0 comments on commit 1eacc4a

Please sign in to comment.