mirror of
https://github.com/docker/build-push-action.git
synced 2024-12-27 08:41:04 +08:00
Merge pull request #371 from crazy-max/console-output
Enhance console output
This commit is contained in:
commit
ad44023a93
BIN
.github/build-push-action.png
vendored
BIN
.github/build-push-action.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -2530,10 +2530,8 @@ function run() {
|
||||
}
|
||||
stateHelper.setTmpDir(context.tmpDir());
|
||||
const buildxVersion = yield buildx.getVersion();
|
||||
core.info(`Using buildx ${buildxVersion}`);
|
||||
const defContext = context.defaultContext();
|
||||
let inputs = yield context.getInputs(defContext);
|
||||
core.info(`Building...`);
|
||||
const args = yield context.getArgs(inputs, defContext, buildxVersion);
|
||||
yield exec.exec('docker', args).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
|
@ -19,12 +19,9 @@ async function run(): Promise<void> {
|
||||
stateHelper.setTmpDir(context.tmpDir());
|
||||
|
||||
const buildxVersion = await buildx.getVersion();
|
||||
core.info(`Using buildx ${buildxVersion}`);
|
||||
|
||||
const defContext = context.defaultContext();
|
||||
let inputs: context.Inputs = await context.getInputs(defContext);
|
||||
|
||||
core.info(`Building...`);
|
||||
const args: string[] = await context.getArgs(inputs, defContext, buildxVersion);
|
||||
await exec.exec('docker', args).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user