mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-20 18:26:46 +00:00
Removed changes from main module
Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
parent
f31af72910
commit
dd55519eee
3 changed files with 11 additions and 16 deletions
|
@ -5,7 +5,6 @@ import * as context from './context';
|
|||
import * as exec from './exec';
|
||||
import * as stateHelper from './state-helper';
|
||||
import * as core from '@actions/core';
|
||||
import * as github from '@actions/github';
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
|
@ -24,13 +23,6 @@ async function run(): Promise<void> {
|
|||
const defContext = context.defaultContext();
|
||||
let inputs: context.Inputs = await 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}`
|
||||
);
|
||||
inputs.labels.push(`dockerfile-path=${dockerfilePath}`);
|
||||
|
||||
core.info(`🏃 Starting build...`);
|
||||
const args: string[] = await context.getArgs(inputs, defContext, buildxVersion);
|
||||
await exec.exec('docker', args).then(res => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue