add tag input

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This commit is contained in:
Luca Stocchi 2020-11-19 10:00:49 +01:00 committed by Tim Etchells
parent deaddbe502
commit d26694b47f
5 changed files with 13 additions and 3 deletions

View file

@ -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);