mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-08 01:49:03 +00:00
Resolve reviews
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
749ffdbf42
commit
48ac9865be
4 changed files with 7 additions and 4 deletions
|
@ -45,7 +45,9 @@ inputs:
|
||||||
default: 'false'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
archs:
|
archs:
|
||||||
description: 'ARCH of the image to build, for multiple ARCHs seperate by a comma. For example, "arm64,amd64"'
|
description: |
|
||||||
|
'Architecture(s) to build the image(s) for. For multiple architectures,
|
||||||
|
separate by a comma. For example, "arm64,amd64"'
|
||||||
default: 'amd64'
|
default: 'amd64'
|
||||||
required: false
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,8 @@
|
||||||
// This file was auto-generated by action-io-generator. Do not edit by hand!
|
// This file was auto-generated by action-io-generator. Do not edit by hand!
|
||||||
export enum Inputs {
|
export enum Inputs {
|
||||||
/**
|
/**
|
||||||
* ARCH of the image to build, for multiple ARCHs seperate by a comma. For example, "arm64,amd64"
|
* 'Architecture(s) to build the image(s) for. For multiple architectures,
|
||||||
|
* separate by a comma. For example, "arm64,amd64"'
|
||||||
* Required: false
|
* Required: false
|
||||||
* Default: "amd64"
|
* Default: "amd64"
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,7 +20,7 @@ export async function run(): Promise<void> {
|
||||||
const tagsList: string[] = tags.split(" ");
|
const tagsList: string[] = tags.split(" ");
|
||||||
const newImage = `${image}:${tagsList[0]}`;
|
const newImage = `${image}:${tagsList[0]}`;
|
||||||
const useOCI = core.getInput(Inputs.OCI) === "true";
|
const useOCI = core.getInput(Inputs.OCI) === "true";
|
||||||
let archs = core.getInput(Inputs.ARCHS);
|
let archs: string | undefined = core.getInput(Inputs.ARCHS);
|
||||||
// remove white spaces (if any) in archs input
|
// remove white spaces (if any) in archs input
|
||||||
archs = archs.replace(/\s+/g, "");
|
archs = archs.replace(/\s+/g, "");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue