mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-09 10:39:04 +00:00
Improve msg if tags is not provided
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
d871ed8ae9
commit
8f71a9c0a0
5 changed files with 8 additions and 4 deletions
|
@ -9,7 +9,7 @@ export enum Inputs {
|
|||
ARCHS = "archs",
|
||||
/**
|
||||
* The base image to use to create a new container image
|
||||
* Required: true
|
||||
* Required: false
|
||||
* Default: None.
|
||||
*/
|
||||
BASE_IMAGE = "base-image",
|
||||
|
|
|
@ -24,6 +24,10 @@ export async function run(): Promise<void> {
|
|||
// remove white spaces (if any) in archs input
|
||||
archs = archs.replace(/\s+/g, "");
|
||||
|
||||
if (!tagsList.length) {
|
||||
core.info(`Input "tags" is not provided, using default tag "latest"`);
|
||||
}
|
||||
|
||||
if (dockerFiles.length !== 0) {
|
||||
await doBuildUsingDockerFiles(cli, newImage, workspace, dockerFiles, useOCI, archs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue