mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 09:01:23 +00:00
Resolve reviews
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
8f71a9c0a0
commit
2ac3ffcd06
3 changed files with 5 additions and 4 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
|
@ -13,10 +13,11 @@ export async function run(): Promise<void> {
|
||||||
const buildahPath = await io.which("buildah", true);
|
const buildahPath = await io.which("buildah", true);
|
||||||
const cli: BuildahCli = new BuildahCli(buildahPath);
|
const cli: BuildahCli = new BuildahCli(buildahPath);
|
||||||
|
|
||||||
|
const DEFAULT_TAG = "latest";
|
||||||
const workspace = process.env.GITHUB_WORKSPACE || process.cwd();
|
const workspace = process.env.GITHUB_WORKSPACE || process.cwd();
|
||||||
const dockerFiles = getInputList(Inputs.DOCKERFILES);
|
const dockerFiles = getInputList(Inputs.DOCKERFILES);
|
||||||
const image = core.getInput(Inputs.IMAGE, { required: true });
|
const image = core.getInput(Inputs.IMAGE, { required: true });
|
||||||
const tags = core.getInput(Inputs.TAGS) || "latest";
|
const tags = core.getInput(Inputs.TAGS) || DEFAULT_TAG;
|
||||||
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";
|
||||||
|
@ -25,7 +26,7 @@ export async function run(): Promise<void> {
|
||||||
archs = archs.replace(/\s+/g, "");
|
archs = archs.replace(/\s+/g, "");
|
||||||
|
|
||||||
if (!tagsList.length) {
|
if (!tagsList.length) {
|
||||||
core.info(`Input "tags" is not provided, using default tag "latest"`);
|
core.info(`Input ${Inputs.TAGS} is not provided, using default tag ${DEFAULT_TAG}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dockerFiles.length !== 0) {
|
if (dockerFiles.length !== 0) {
|
||||||
|
|
Loading…
Reference in a new issue