mirror of
https://github.com/docker/bake-action.git
synced 2026-01-22 12:22:21 +01:00
Enhanced console output
This commit is contained in:
@@ -114,7 +114,7 @@ updates:
|
|||||||
|
|
||||||
This action is only available for Linux [virtual environments](https://help.github.com/en/articles/virtual-environments-for-github-actions#supported-virtual-environments-and-hardware-resources).
|
This action is only available for Linux [virtual environments](https://help.github.com/en/articles/virtual-environments-for-github-actions#supported-virtual-environments-and-hardware-resources).
|
||||||
|
|
||||||
# Contributing
|
## Contributing
|
||||||
|
|
||||||
Want to contribute? Awesome! The most basic way to show your support is to star :star2: the project,
|
Want to contribute? Awesome! The most basic way to show your support is to star :star2: the project,
|
||||||
or to raise issues :speech_balloon:. If you want to open a pull request, please read the
|
or to raise issues :speech_balloon:. If you want to open a pull request, please read the
|
||||||
|
|||||||
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
@@ -535,11 +535,12 @@ function run() {
|
|||||||
const buildxVersion = yield buildx.getVersion();
|
const buildxVersion = yield buildx.getVersion();
|
||||||
core.info(`📣 Buildx version: ${buildxVersion}`);
|
core.info(`📣 Buildx version: ${buildxVersion}`);
|
||||||
let inputs = yield context.getInputs();
|
let inputs = yield context.getInputs();
|
||||||
core.startGroup(`🏃 Starting bake...`);
|
|
||||||
const args = yield context.getArgs(inputs, buildxVersion);
|
const args = yield context.getArgs(inputs, buildxVersion);
|
||||||
|
core.startGroup(`💡 Bake definition`);
|
||||||
yield exec.exec('docker', [...args, '--print']);
|
yield exec.exec('docker', [...args, '--print']);
|
||||||
yield exec.exec('docker', args);
|
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
core.info(`🏃 Building...`);
|
||||||
|
yield exec.exec('docker', args);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|||||||
@@ -20,12 +20,14 @@ async function run(): Promise<void> {
|
|||||||
core.info(`📣 Buildx version: ${buildxVersion}`);
|
core.info(`📣 Buildx version: ${buildxVersion}`);
|
||||||
|
|
||||||
let inputs: context.Inputs = await context.getInputs();
|
let inputs: context.Inputs = await context.getInputs();
|
||||||
|
|
||||||
core.startGroup(`🏃 Starting bake...`);
|
|
||||||
const args: string[] = await context.getArgs(inputs, buildxVersion);
|
const args: string[] = await context.getArgs(inputs, buildxVersion);
|
||||||
|
|
||||||
|
core.startGroup(`💡 Bake definition`);
|
||||||
await exec.exec('docker', [...args, '--print']);
|
await exec.exec('docker', [...args, '--print']);
|
||||||
await exec.exec('docker', args);
|
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
||||||
|
core.info(`🏃 Building...`);
|
||||||
|
await exec.exec('docker', args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user