mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-01 20:50:09 +02:00
Edited the labels
Commit sha: 638eda3fee2d80b61fc1020132d43aaaa590837a, Author: Jyotsna Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
parent
720cd8569f
commit
ed4d53f122
2 changed files with 4 additions and 2 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -2390,7 +2390,8 @@ function run() {
|
|||
let inputs = yield context.getInputs(defContext);
|
||||
//Add dockerfile path to label
|
||||
let dockerfilePath = core.getInput('file') || 'Dockerfile';
|
||||
inputs.labels.push(`org.opencontainers.image.source=https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/${dockerfilePath}`);
|
||||
inputs.labels.push(`org.opencontainers.image.source=https://github.com/${github.context.repo.owner}/${github.context.repo.repo}`);
|
||||
inputs.labels.push(`dockerfilePath=${dockerfilePath}`);
|
||||
core.info(`🏃 Starting build...`);
|
||||
const args = yield context.getArgs(inputs, defContext, buildxVersion);
|
||||
yield exec.exec('docker', args).then(res => {
|
||||
|
|
|
@ -27,8 +27,9 @@ async function run(): Promise<void> {
|
|||
//Add dockerfile path to label
|
||||
let dockerfilePath = core.getInput('file') || 'Dockerfile';
|
||||
inputs.labels.push(
|
||||
`org.opencontainers.image.source=https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/${dockerfilePath}`
|
||||
`org.opencontainers.image.source=https://github.com/${github.context.repo.owner}/${github.context.repo.repo}`
|
||||
);
|
||||
inputs.labels.push(`dockerfilePath=${dockerfilePath}`);
|
||||
|
||||
core.info(`🏃 Starting build...`);
|
||||
const args: string[] = await context.getArgs(inputs, defContext, buildxVersion);
|
||||
|
|
Loading…
Add table
Reference in a new issue