mirror of
https://git.flexiblyrigid.au/actions/bake-action.git
synced 2025-12-06 15:58:07 +08: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).
|
||||
|
||||
# Contributing
|
||||
## Contributing
|
||||
|
||||
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
|
||||
|
||||
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
@@ -535,11 +535,12 @@ function run() {
|
||||
const buildxVersion = yield buildx.getVersion();
|
||||
core.info(`📣 Buildx version: ${buildxVersion}`);
|
||||
let inputs = yield context.getInputs();
|
||||
core.startGroup(`🏃 Starting bake...`);
|
||||
const args = yield context.getArgs(inputs, buildxVersion);
|
||||
core.startGroup(`💡 Bake definition`);
|
||||
yield exec.exec('docker', [...args, '--print']);
|
||||
yield exec.exec('docker', args);
|
||||
core.endGroup();
|
||||
core.info(`🏃 Building...`);
|
||||
yield exec.exec('docker', args);
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
||||
@@ -20,12 +20,14 @@ async function run(): Promise<void> {
|
||||
core.info(`📣 Buildx version: ${buildxVersion}`);
|
||||
|
||||
let inputs: context.Inputs = await context.getInputs();
|
||||
|
||||
core.startGroup(`🏃 Starting bake...`);
|
||||
const args: string[] = await context.getArgs(inputs, buildxVersion);
|
||||
|
||||
core.startGroup(`💡 Bake definition`);
|
||||
await exec.exec('docker', [...args, '--print']);
|
||||
await exec.exec('docker', args);
|
||||
core.endGroup();
|
||||
|
||||
core.info(`🏃 Building...`);
|
||||
await exec.exec('docker', args);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user