Fix isolation mode to use default by default

pull/588/head
Andrew Kahr 2023-10-27 19:02:23 -07:00
parent 974b785700
commit 3375d93438
5 changed files with 11 additions and 5 deletions

View File

@ -119,9 +119,10 @@ inputs:
To manually specify a value, use the format <number><unit>, where unit is either m or g. ie: 512m = 512 megabytes'
dockerIsolationMode:
required: false
default: 'process'
default: 'default'
description:
'Isolation mode to use for the docker container. Can be either process or hyperv. Only applicable on Windows'
'Isolation mode to use for the docker container. Can be one of process, hyperv, or default. Only applicable on
Windows'
allowDirtyBuild:
required: false
default: ''

3
dist/index.js generated vendored
View File

@ -287,6 +287,7 @@ class BuildParameters {
chownFilesTo: input_1.default.chownFilesTo,
dockerCpuLimit: input_1.default.dockerCpuLimit,
dockerMemoryLimit: input_1.default.dockerMemoryLimit,
dockerIsolationMode: input_1.default.dockerIsolationMode,
providerStrategy: cloud_runner_options_1.default.providerStrategy,
buildPlatform: cloud_runner_options_1.default.buildPlatform,
kubeConfig: cloud_runner_options_1.default.kubeConfig,
@ -6936,7 +6937,7 @@ class Input {
return (Input.getInput('dockerMemoryLimit') || `${Math.floor((node_os_1.default.totalmem() / bytesInMegabyte) * memoryMultiplier)}m`);
}
static get dockerIsolationMode() {
return Input.getInput('dockerIsolationMode') || 'process';
return Input.getInput('dockerIsolationMode') || 'default';
}
static ToEnvVarFormat(input) {
if (input.toUpperCase() === input) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -40,6 +40,9 @@ class BuildParameters {
public androidSdkManagerParameters!: string;
public androidExportType!: string;
public androidSymbolType!: string;
public dockerCpuLimit!: string;
public dockerMemoryLimit!: string;
public dockerIsolationMode!: string;
public customParameters!: string;
public sshAgent!: string;
@ -160,6 +163,7 @@ class BuildParameters {
chownFilesTo: Input.chownFilesTo,
dockerCpuLimit: Input.dockerCpuLimit,
dockerMemoryLimit: Input.dockerMemoryLimit,
dockerIsolationMode: Input.dockerIsolationMode,
providerStrategy: CloudRunnerOptions.providerStrategy,
buildPlatform: CloudRunnerOptions.buildPlatform,
kubeConfig: CloudRunnerOptions.kubeConfig,

View File

@ -253,7 +253,7 @@ class Input {
}
static get dockerIsolationMode(): string {
return Input.getInput('dockerIsolationMode') || 'process';
return Input.getInput('dockerIsolationMode') || 'default';
}
public static ToEnvVarFormat(input: string) {