From 1af8829102318fa10a610ba3a7e306a295ce37ef Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 16 Aug 2020 01:53:55 +0200 Subject: [PATCH] Fix buildx condition Signed-off-by: CrazyMax --- dist/index.js | 2 +- src/context-helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 669bedb..94cabd9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1213,7 +1213,7 @@ function mustBuildx(inputs) { return __awaiter(this, void 0, void 0, function* () { return (inputs.builder.length > 0 || inputs.platforms.length > 0 || - inputs.push || + inputs.load || inputs.outputs.length > 0 || inputs.cacheFrom.length > 0 || inputs.cacheTo.length > 0); diff --git a/src/context-helper.ts b/src/context-helper.ts index 4548ff5..5ae0b8c 100644 --- a/src/context-helper.ts +++ b/src/context-helper.ts @@ -42,7 +42,7 @@ export async function mustBuildx(inputs: Inputs): Promise { return ( inputs.builder.length > 0 || inputs.platforms.length > 0 || - inputs.push || + inputs.load || inputs.outputs.length > 0 || inputs.cacheFrom.length > 0 || inputs.cacheTo.length > 0