Fix isolation mode to use default by default

This commit is contained in:
Andrew Kahr 2023-10-27 19:02:23 -07:00
parent 974b785700
commit 3375d93438
5 changed files with 8 additions and 3 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' To manually specify a value, use the format <number><unit>, where unit is either m or g. ie: 512m = 512 megabytes'
dockerIsolationMode: dockerIsolationMode:
required: false required: false
default: 'process' default: 'default'
description: 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: allowDirtyBuild:
required: false required: false
default: '' default: ''

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

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

View File

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