2
0
Fork 0
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:
CrazyMax 2021-05-22 21:23:06 +02:00
parent 01dc739d69
commit e6f3e4aa91
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
6 changed files with 359 additions and 20 deletions

View file

@ -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`);