Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: int128/kaniko-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: vchavkov/action-kaniko
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 8 commits
  • 1 file changed
  • 1 contributor

Commits on Feb 12, 2024

  1. kaniko digest

    Vladimir Chavkov committed Feb 12, 2024
    Copy the full SHA
    df376cf View commit details
  2. kaniko digest

    Vladimir Chavkov committed Feb 12, 2024
    Copy the full SHA
    71609a7 View commit details
  3. kaniko digest

    Vladimir Chavkov committed Feb 12, 2024
    Copy the full SHA
    df2608d View commit details

Commits on Feb 13, 2024

  1. kaniko digest

    Vladimir Chavkov committed Feb 13, 2024
    Copy the full SHA
    d423e9a View commit details
  2. kaniko digest

    Vladimir Chavkov committed Feb 13, 2024
    Copy the full SHA
    ba814d7 View commit details
  3. kaniko digest

    Vladimir Chavkov committed Feb 13, 2024
    Copy the full SHA
    aa630bd View commit details
  4. kaniko digest

    Vladimir Chavkov committed Feb 13, 2024
    Copy the full SHA
    125faf6 View commit details

Commits on Feb 16, 2024

  1. kaniko digest

    Vladimir Chavkov committed Feb 16, 2024
    Copy the full SHA
    d6d0f40 View commit details
Showing with 3 additions and 7 deletions.
  1. +3 −7 src/run.ts
10 changes: 3 additions & 7 deletions src/run.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import { promises as fs } from 'fs'
import * as os from 'os'
import * as path from 'path'


type Inputs = {
executor: string
cache: boolean
@@ -30,12 +31,7 @@ export const run = async (inputs: Inputs): Promise<Outputs> => {
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', () => exec.exec('docker', args))

console.log(`${outputsDir}`)
const digest = await readContent(`${outputsDir}/digest`)
core.info(digest)
return { digest }
@@ -69,7 +65,7 @@ export const generateArgs = (inputs: Inputs, outputsDir: string): string[] => {
// kaniko args
'--context',
'dir:///kaniko/action/context/',
'--digest-file',
'--image-name-with-digest-file',
'/kaniko/action/outputs/digest',
]