Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix(buildah): support Dockerfile builder target param to build specif…
…ic stage Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
- Loading branch information
Showing
with
3 additions
and 0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -41,6 +41,7 @@ type BuildFromDockerfileOpts struct { | ||
CommonOpts | ||
ContextTar io.Reader | ||
BuildArgs map[string]string | ||
Target string | ||
} | ||
|
||
type RunMount struct { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -91,6 +91,7 @@ func (runtime *BuildahRuntime) BuildDockerfile(ctx context.Context, dockerfile [ | ||
}, | ||
ContextTar: opts.ContextTar, | ||
BuildArgs: buildArgs, | ||
Target: opts.Target, | ||
}) | ||
} | ||
|
||