зеркало из https://github.com/docker/bake-action.git
Enhance outputs display
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
Родитель
bdefe3d1ff
Коммит
7ca0f811df
|
@ -337,13 +337,13 @@ function run() {
|
|||
throw new Error(`buildx bake failed with: ${res.stderr.match(/(.*)\s*$/)[0].trim()}`);
|
||||
}
|
||||
});
|
||||
yield core.group(`Setting outputs`, () => __awaiter(this, void 0, void 0, function* () {
|
||||
const metadata = yield buildx.getMetadata();
|
||||
if (metadata) {
|
||||
core.info(`metadata=${metadata}`);
|
||||
const metadata = yield buildx.getMetadata();
|
||||
if (metadata) {
|
||||
yield core.group(`Metadata output`, () => __awaiter(this, void 0, void 0, function* () {
|
||||
core.info(metadata);
|
||||
context.setOutput('metadata', metadata);
|
||||
}
|
||||
}));
|
||||
}));
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
|
12
src/main.ts
12
src/main.ts
|
@ -36,13 +36,13 @@ async function run(): Promise<void> {
|
|||
}
|
||||
});
|
||||
|
||||
await core.group(`Setting outputs`, async () => {
|
||||
const metadata = await buildx.getMetadata();
|
||||
if (metadata) {
|
||||
core.info(`metadata=${metadata}`);
|
||||
const metadata = await buildx.getMetadata();
|
||||
if (metadata) {
|
||||
await core.group(`Metadata output`, async () => {
|
||||
core.info(metadata);
|
||||
context.setOutput('metadata', metadata);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче