Skip to content

Commit

Permalink
Fix: propagate --cache-from to buildx build
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Mar 20, 2024
1 parent eb5ce90 commit 5f607e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spec-node/containerFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export async function extendImage(params: DockerResolverParameters, config: Subs
if (params.buildxCacheTo) {
args.push('--cache-to', params.buildxCacheTo);
}
if (!params.buildNoCache) {
params.additionalCacheFroms.forEach(cacheFrom => args.push('--cache-from', cacheFrom));
}

for (const buildContext in featureBuildInfo.buildKitContexts) {
args.push('--build-context', `${buildContext}=${featureBuildInfo.buildKitContexts[buildContext]}`);
Expand Down

0 comments on commit 5f607e7

Please sign in to comment.