mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-07 17:31:35 +00:00
Print buildah version at the top of the workflow
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
71b37c4385
commit
54ff9945b9
4 changed files with 6 additions and 3 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -131,7 +131,7 @@ export class BuildahCli implements Buildah {
|
|||
return `${arrayAsString.slice(0, -1)}]`;
|
||||
}
|
||||
|
||||
private async execute(args: string[], execOptions: exec.ExecOptions = {}): Promise<CommandResult> {
|
||||
async execute(args: string[], execOptions: exec.ExecOptions = {}): Promise<CommandResult> {
|
||||
// ghCore.info(`${EXECUTABLE} ${args.join(" ")}`)
|
||||
|
||||
let stdout = "";
|
||||
|
|
|
@ -13,6 +13,9 @@ export async function run(): Promise<void> {
|
|||
const buildahPath = await io.which("buildah", true);
|
||||
const cli: BuildahCli = new BuildahCli(buildahPath);
|
||||
|
||||
// print buildah version
|
||||
await cli.execute([ "version" ]);
|
||||
|
||||
const DEFAULT_TAG = "latest";
|
||||
const workspace = process.env.GITHUB_WORKSPACE || process.cwd();
|
||||
const dockerFiles = getInputList(Inputs.DOCKERFILES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue