Removed changes from main module

Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
Jyotsna 2020-11-05 12:36:20 +05:30
parent f31af72910
commit dd55519eee
3 changed files with 11 additions and 16 deletions

View file

@ -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 => {