Fixed link to dockerfile

Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
Jyotsna 2020-11-11 20:35:08 +05:30
parent cf7e6e140f
commit 065688b98f
2 changed files with 4 additions and 2 deletions

View file

@ -85,7 +85,8 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
) {
//Add link to dockerfile as label
let dockerfilePath = userInputs.file;
userInputs.labels.push(`dockerfile-path=${defaultContext}/${dockerfilePath}`);
let repoPath = defaultContext.replace('#head', '/blob');
userInputs.labels.push(`dockerfile-path=${repoPath}/${dockerfilePath}`);
}
return userInputs;