Print buildah version at the top of the workflow

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-03-23 19:45:56 +05:30
parent 71b37c4385
commit 54ff9945b9
4 changed files with 6 additions and 3 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -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 = "";

View file

@ -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);