Skip to content

Commit

Permalink
Do not group build logs (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Feb 10, 2023
1 parent d0bc4d2 commit e87c45c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ type Outputs = {
}

export const run = async (inputs: Inputs): Promise<Outputs> => {
await withTime('Pulled', () => exec.exec('docker', ['pull', '-q', inputs.executor]))
await core.group(`Pulling ${inputs.executor}`, () =>
withTime('Pulled', () => exec.exec('docker', ['pull', '-q', inputs.executor]))
)

const runnerTempDir = process.env.RUNNER_TEMP || os.tmpdir()
const outputsDir = await fs.mkdtemp(path.join(runnerTempDir, 'kaniko-action-'))
const args = generateArgs(inputs, outputsDir)
await withTime('Built', () => core.group('Build', () => exec.exec('docker', args)))
await withTime('Built', () => exec.exec('docker', args))

const digest = await readContent(`${outputsDir}/digest`)
core.info(digest)
Expand Down

0 comments on commit e87c45c

Please sign in to comment.