mirror of
https://github.com/docker/bake-action.git
synced 2025-07-14 12:41:53 +02:00
12
dist/index.js
generated
vendored
12
dist/index.js
generated
vendored
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user