Skip to content

Commit 8ca0024

Browse files
committed
Write build log to summary
1 parent 4384ee4 commit 8ca0024

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/run.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@ export const run = async (inputs: Inputs): Promise<Outputs> => {
3131

3232
const outputDir = await fs.mkdtemp(`${os.tmpdir()}/kaniko-action-`)
3333
const args = generateArgs(inputs, outputDir)
34-
await withTime('Built', () => core.group('Build', () => exec.exec('docker', args)))
34+
await withTime('Built', () =>
35+
core.group('Build', async () => {
36+
const output = await exec.getExecOutput('docker', args)
37+
core.summary.addHeading(`kaniko build`)
38+
core.summary.addCodeBlock(`docker ${args.join(' ')}`)
39+
core.summary.addCodeBlock(output.stdout)
40+
})
41+
)
42+
await core.summary.write()
3543

3644
const digest = await readContent(`${outputDir}/digest`)
3745
core.info(digest)

0 commit comments

Comments
 (0)