mirror of
https://github.com/docker/build-push-action.git
synced 2025-03-30 19:50:07 +02:00
Fixed link to dockerfile
Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
parent
cf7e6e140f
commit
065688b98f
2 changed files with 4 additions and 2 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -12092,7 +12092,8 @@ 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;
|
||||
userInputs.labels.push(`dockerfile-path=${defaultContext}/${dockerfilePath}`);
|
||||
let repoPath = defaultContext.replace('#head', '/blob');
|
||||
userInputs.labels.push(`dockerfile-path=${repoPath}/${dockerfilePath}`);
|
||||
}
|
||||
return userInputs;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue