mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 17:11:23 +00:00
run bundle
This commit is contained in:
parent
99beb78b03
commit
176d5100a5
2 changed files with 10 additions and 2 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
@ -4522,6 +4522,12 @@ var Inputs;
|
||||||
* Default: None.
|
* Default: None.
|
||||||
*/
|
*/
|
||||||
Inputs["WORKDIR"] = "workdir";
|
Inputs["WORKDIR"] = "workdir";
|
||||||
|
/**
|
||||||
|
* If you are running on self hosted runner, you can set this so it will add "sudo" to every buildah command if you dont want to run rootless. Defaults to false
|
||||||
|
* Required: false
|
||||||
|
* Default: "false"
|
||||||
|
*/
|
||||||
|
Inputs["SELF_HOSTED_RUNNER_ROOT"] = "self-hosted-runner-root";
|
||||||
})(Inputs || (Inputs = {}));
|
})(Inputs || (Inputs = {}));
|
||||||
var Outputs;
|
var Outputs;
|
||||||
(function (Outputs) {
|
(function (Outputs) {
|
||||||
|
@ -4952,8 +4958,10 @@ async function run() {
|
||||||
throw new Error("buildah, and therefore this action, only works on Linux. Please use a Linux runner.");
|
throw new Error("buildah, and therefore this action, only works on Linux. Please use a Linux runner.");
|
||||||
}
|
}
|
||||||
// get buildah cli
|
// get buildah cli
|
||||||
|
const self_hosted_runner = core.getInput(Inputs.SELF_HOSTED_RUNNER_ROOT);
|
||||||
const buildahPath = await io.which("buildah", true);
|
const buildahPath = await io.which("buildah", true);
|
||||||
const cli = new BuildahCli(`sudo ${buildahPath}`);
|
const buildahExec = self_hosted_runner === "true" ? `sudo ${buildahPath}` : buildahPath;
|
||||||
|
const cli = new BuildahCli(buildahExec);
|
||||||
// print buildah version
|
// print buildah version
|
||||||
await cli.execute(["version"], { group: true });
|
await cli.execute(["version"], { group: true });
|
||||||
// Check if fuse-overlayfs exists and find the storage driver
|
// Check if fuse-overlayfs exists and find the storage driver
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue