mirror of
https://github.com/docker/bake-action.git
synced 2026-01-22 12:22:21 +01: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()}`);
|
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();
|
||||||
const metadata = yield buildx.getMetadata();
|
if (metadata) {
|
||||||
if (metadata) {
|
yield core.group(`Metadata output`, () => __awaiter(this, void 0, void 0, function* () {
|
||||||
core.info(`metadata=${metadata}`);
|
core.info(metadata);
|
||||||
context.setOutput('metadata', metadata);
|
context.setOutput('metadata', metadata);
|
||||||
}
|
}));
|
||||||
}));
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
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();
|
||||||
const metadata = await buildx.getMetadata();
|
if (metadata) {
|
||||||
if (metadata) {
|
await core.group(`Metadata output`, async () => {
|
||||||
core.info(`metadata=${metadata}`);
|
core.info(metadata);
|
||||||
context.setOutput('metadata', metadata);
|
context.setOutput('metadata', metadata);
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user