Skip to content

Commit 9d98f30

Browse files
Merge pull request #638 from dhhyi/fix/propagate-cache-from
Fix: propagate --cache-from to buildx build
2 parents 1da368b + b2a4c4f commit 9d98f30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spec-node/containerFeatures.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export async function extendImage(params: DockerResolverParameters, config: Subs
8585
if (params.buildxCacheTo) {
8686
args.push('--cache-to', params.buildxCacheTo);
8787
}
88+
if (!params.buildNoCache) {
89+
params.additionalCacheFroms.forEach(cacheFrom => args.push('--cache-from', cacheFrom));
90+
}
8891

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

0 commit comments

Comments
 (0)