mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-08 01:49:03 +00:00
Run buildah config command before copy command (#71)
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
a9a026b165
commit
2ee55183af
4 changed files with 4 additions and 5 deletions
|
@ -99,8 +99,6 @@ async function doBuildFromScratch(
|
|||
const container = await cli.from(baseImage);
|
||||
const containerId = container.output.replace("\n", "");
|
||||
|
||||
await cli.copy(containerId, content);
|
||||
|
||||
const newImageConfig: BuildahConfigSettings = {
|
||||
entrypoint,
|
||||
port,
|
||||
|
@ -109,6 +107,7 @@ async function doBuildFromScratch(
|
|||
arch,
|
||||
};
|
||||
await cli.config(containerId, newImageConfig);
|
||||
await cli.copy(containerId, content);
|
||||
await cli.commit(containerId, newImage, useOCI);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue