From bfba4d8913ac17b16af312060e7c7706ee802f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 12:31:48 -0300 Subject: [PATCH 1/7] Added 'quiet' docker arg support --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 88ca69a73..39423859c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -386,8 +386,8 @@ function getCommonArgs(inputs) { if (inputs.network) { args.push('--network', inputs.network); } - if (inputs.push) { - args.push('--push'); + if (inputs.quiet) { + args.push('--quiet'); } return args; }); @@ -17274,4 +17274,4 @@ module.exports = require("zlib");; /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +; From 504c13c95f489838cac48fd5560c7aa8e5ec587b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 12:34:34 -0300 Subject: [PATCH 2/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f77ec79ed..a86a1e358 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ Following inputs can be used as `step.with` keys | `ssh` | List | List of SSH agent socket or keys to expose to the build | | `tags` | List/CSV | List of tags | | `target` | String | Sets the target stage to build | +| `quiet` | String | Suppress the build output and print image ID on success | ### outputs From dafed4e96c9b8b76987a881cdbb85121bb04d7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 12:37:08 -0300 Subject: [PATCH 3/7] Update index.js --- dist/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/index.js b/dist/index.js index 39423859c..9f2b53c57 100644 --- a/dist/index.js +++ b/dist/index.js @@ -280,6 +280,7 @@ function getInputs(defaultContext) { load: core.getBooleanInput('load'), network: core.getInput('network'), noCache: core.getBooleanInput('no-cache'), + quiet: core.getBooleanInput('quiet'), outputs: yield getInputList('outputs', true), platforms: yield getInputList('platforms'), pull: core.getBooleanInput('pull'), From 3d75494833fad48fd7badb6530f37235607a6adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 12:31:48 -0300 Subject: [PATCH 4/7] Added 'quiet' docker arg support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Miño --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 88ca69a73..39423859c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -386,8 +386,8 @@ function getCommonArgs(inputs) { if (inputs.network) { args.push('--network', inputs.network); } - if (inputs.push) { - args.push('--push'); + if (inputs.quiet) { + args.push('--quiet'); } return args; }); @@ -17274,4 +17274,4 @@ module.exports = require("zlib");; /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +; From edfc3424ce0b08cde7973e2aa33011a756831fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 12:34:34 -0300 Subject: [PATCH 5/7] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Miño --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f77ec79ed..a86a1e358 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ Following inputs can be used as `step.with` keys | `ssh` | List | List of SSH agent socket or keys to expose to the build | | `tags` | List/CSV | List of tags | | `target` | String | Sets the target stage to build | +| `quiet` | String | Suppress the build output and print image ID on success | ### outputs From 3e5d8254d4252edeaec0cd290dc0c410eb4c3995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 12:37:08 -0300 Subject: [PATCH 6/7] Update index.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Miño --- dist/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/index.js b/dist/index.js index 39423859c..9f2b53c57 100644 --- a/dist/index.js +++ b/dist/index.js @@ -280,6 +280,7 @@ function getInputs(defaultContext) { load: core.getBooleanInput('load'), network: core.getInput('network'), noCache: core.getBooleanInput('no-cache'), + quiet: core.getBooleanInput('quiet'), outputs: yield getInputList('outputs', true), platforms: yield getInputList('platforms'), pull: core.getBooleanInput('pull'), From bf14809ab7335ca94d8a3cda91839527dd42a2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mi=C3=B1o=20-=20TN?= <87651687+jj-mino@users.noreply.github.com> Date: Fri, 15 Oct 2021 13:34:07 -0300 Subject: [PATCH 7/7] Update context.ts --- src/context.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/context.ts b/src/context.ts index b951a9be8..2fcb6c2b6 100644 --- a/src/context.ts +++ b/src/context.ts @@ -26,6 +26,7 @@ export interface Inputs { noCache: boolean; outputs: string[]; platforms: string[]; + quiet: boolean; pull: boolean; push: boolean; secrets: string[]; @@ -74,6 +75,7 @@ export async function getInputs(defaultContext: string): Promise { load: core.getBooleanInput('load'), network: core.getInput('network'), noCache: core.getBooleanInput('no-cache'), + quiet: core.getBooleanInput('quiet'), outputs: await getInputList('outputs', true), platforms: await getInputList('platforms'), pull: core.getBooleanInput('pull'), @@ -153,6 +155,9 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio if (inputs.file) { args.push('--file', inputs.file); } + if (inputs.quiet) { + args.push('--quiet'); + } return args; }