mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 09:01:23 +00:00
add tag input
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This commit is contained in:
parent
deaddbe502
commit
126e839197
5 changed files with 13 additions and 3 deletions
|
@ -27,6 +27,12 @@ Note that GitHub's [Ubuntu Environments](https://github.com/actions/virtual-envi
|
|||
<td>Name to give to the image that will be eventually created.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>tag</td>
|
||||
<td>No</td>
|
||||
<td>Tag to give to the image that will be eventually created (default: latest)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>base-name</td>
|
||||
<td>No</td>
|
||||
|
|
|
@ -8,6 +8,10 @@ inputs:
|
|||
image:
|
||||
description: 'The name (reference) of the image to build'
|
||||
required: true
|
||||
tag:
|
||||
description: 'The tag of the image to build'
|
||||
required: false
|
||||
default: latest
|
||||
base-image:
|
||||
description: 'The base image to use to create a new container image'
|
||||
required: false
|
||||
|
|
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
|
@ -18,7 +18,7 @@ export async function run(): Promise<void> {
|
|||
|
||||
const workspace = process.env['GITHUB_WORKSPACE'];
|
||||
let dockerFiles = getInputList('dockerfiles');
|
||||
const newImage = core.getInput('image');
|
||||
const newImage = `${core.getInput('image')}:${core.getInput('tag')}`;
|
||||
|
||||
if (dockerFiles.length !== 0) {
|
||||
doBuildUsingDockerFiles(cli, newImage, workspace, dockerFiles);
|
||||
|
|
Loading…
Reference in a new issue