diff --git a/dist/index.js b/dist/index.js index 5108af2..97a22e4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -37134,7 +37134,7 @@ function getBuildArgs(inputs) { args.push('--cache-from', cacheFrom); })); yield asyncForEach(inputs.cacheTo, (cacheTo) => __awaiter(this, void 0, void 0, function* () { - args.push('--cache-from', cacheTo); + args.push('--cache-to', cacheTo); })); if (inputs.file) { args.push('--file', inputs.file); diff --git a/src/context.ts b/src/context.ts index 2cc049d..13bfe67 100644 --- a/src/context.ts +++ b/src/context.ts @@ -137,7 +137,7 @@ async function getBuildArgs(inputs: Inputs): Promise> { args.push('--cache-from', cacheFrom); }); await asyncForEach(inputs.cacheTo, async cacheTo => { - args.push('--cache-from', cacheTo); + args.push('--cache-to', cacheTo); }); if (inputs.file) { args.push('--file', inputs.file);