mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-05 22:00:53 +00:00
Add json output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
01dc739d69
commit
e6f3e4aa91
6 changed files with 359 additions and 20 deletions
|
@ -60,6 +60,13 @@ async function run() {
|
|||
core.endGroup();
|
||||
setOutput('labels', labels.join(inputs.sepLabels));
|
||||
|
||||
// JSON
|
||||
const jsonOutput = meta.getJSON();
|
||||
core.startGroup(`JSON output`);
|
||||
core.info(JSON.stringify(jsonOutput, null, 2));
|
||||
core.endGroup();
|
||||
setOutput('json', jsonOutput);
|
||||
|
||||
// Bake definition file
|
||||
const bakeFile: string = meta.getBakeFile();
|
||||
core.startGroup(`Bake definition file`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue