Skip to content

Commit

Permalink
Merge pull request #638 from dhhyi/fix/propagate-cache-from
Browse files Browse the repository at this point in the history
Fix: propagate --cache-from to buildx build
  • Loading branch information
samruddhikhandale authored Apr 12, 2024
2 parents 1da368b + b2a4c4f commit 9d98f30
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 9d98f30

Please sign in to comment.