mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-21 10:46:45 +00:00
Fixed link to dockerfile
Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
parent
065688b98f
commit
c59c0cec43
3 changed files with 50 additions and 15 deletions
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
|
@ -12092,7 +12092,14 @@ function getInputs(defaultContext) {
|
|||
userInputs.outputs.find(val => val.indexOf('type=image') > -1 || val.indexOf('type=registry') > -1))) {
|
||||
//Add link to dockerfile as label
|
||||
let dockerfilePath = userInputs.file;
|
||||
let repoPath = defaultContext.replace('#head', '/blob');
|
||||
let stringToReplace = '';
|
||||
if (defaultContext.indexOf('#heads')) {
|
||||
stringToReplace = '.git#heads';
|
||||
}
|
||||
else if (defaultContext.indexOf('#tags')) {
|
||||
stringToReplace = '.git#tags';
|
||||
}
|
||||
let repoPath = defaultContext.replace(stringToReplace, '/blob');
|
||||
userInputs.labels.push(`dockerfile-path=${repoPath}/${dockerfilePath}`);
|
||||
}
|
||||
return userInputs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue