Add Layers input for build using dockerfile (#43)

Also add link to buildah docs in the README

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
Divyanshu Agrawal 2021-03-30 18:20:32 +05:30 committed by GitHub
parent 54ff9945b9
commit 3196e5acb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 11 deletions

View file

@ -61,7 +61,8 @@ async function doBuildUsingDockerFiles(
const context = path.join(workspace, core.getInput(Inputs.CONTEXT));
const buildArgs = getInputList(Inputs.BUILD_ARGS);
const dockerFileAbsPaths = dockerFiles.map((file) => path.join(workspace, file));
await cli.buildUsingDocker(newImage, context, dockerFileAbsPaths, buildArgs, useOCI, archs);
const layers = core.getInput(Inputs.LAYERS);
await cli.buildUsingDocker(newImage, context, dockerFileAbsPaths, buildArgs, useOCI, archs, layers);
}
async function doBuildFromScratch(