mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-08 01:49:03 +00:00
Add output image-with-tag (#68)
* Add output image-with-tag Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
fe5edd5859
commit
ab006ef445
9 changed files with 17 additions and 2 deletions
|
@ -106,6 +106,12 @@ export enum Outputs {
|
|||
* Default: None.
|
||||
*/
|
||||
IMAGE = "image",
|
||||
/**
|
||||
* Name of the image tagged with the first tag present
|
||||
* Required: false
|
||||
* Default: None.
|
||||
*/
|
||||
IMAGE_WITH_TAG = "image-with-tag",
|
||||
/**
|
||||
* List of the tags that were created, separated by spaces
|
||||
* Required: false
|
||||
|
|
|
@ -54,6 +54,7 @@ export async function run(): Promise<void> {
|
|||
}
|
||||
core.setOutput(Outputs.IMAGE, image);
|
||||
core.setOutput(Outputs.TAGS, tags);
|
||||
core.setOutput(Outputs.IMAGE_WITH_TAG, `${image}:${tagsList[0]}`);
|
||||
}
|
||||
|
||||
async function doBuildUsingDockerFiles(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue