Skip to content

Commit

Permalink
kaniko digest
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Chavkov committed Feb 13, 2024
1 parent df2608d commit d423e9a
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,9 @@ export const run = async (inputs: Inputs): Promise<Outputs> => {
await core.group(`Pulling ${inputs.executor}`, () =>
withTime('Pulled', () => exec.exec('docker', ['pull', '-q', inputs.executor])),
)

const directoryPath = path.join(__filename, ${outputsDir}); // replace 'your_directory' with your directory name

fs.readdir(directoryPath, function (err: NodeJS.ErrnoException | null, files: string[]) {
if (err) {
return console.log('Unable to scan directory: ' + err);
}
files.forEach(function (file: string) {
console.log(file);
});
});

const digest = await readContent(`${outputsDir}/digest`)
core.info(digest)
// const digest = await readContent(`${outputsDir}/digest`)
// core.info(digest)
let digest = 'sha256:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef0'
return { digest }
}

Expand Down

0 comments on commit d423e9a

Please sign in to comment.