mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 09:01:23 +00:00
Throw an error when both 'platform' and 'arch' options are supplied during a build
This commit is contained in:
parent
a69800dc4e
commit
b88e8e76cb
1 changed files with 4 additions and 0 deletions
|
@ -186,6 +186,10 @@ export class BuildahCli implements Buildah {
|
||||||
): Promise<CommandResult> {
|
): Promise<CommandResult> {
|
||||||
// ghCore.info(`${EXECUTABLE} ${args.join(" ")}`)
|
// ghCore.info(`${EXECUTABLE} ${args.join(" ")}`)
|
||||||
|
|
||||||
|
if (args.arch && args.platform) {
|
||||||
|
throw new Error("The --platform option may not be used in combination with the --arch option.");
|
||||||
|
}
|
||||||
|
|
||||||
let stdout = "";
|
let stdout = "";
|
||||||
let stderr = "";
|
let stderr = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue