improving storage api
parent
3d089721ef
commit
7b00187f26
16
action.yml
16
action.yml
|
|
@ -122,14 +122,6 @@ inputs:
|
||||||
default: ''
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
description: 'Amount of memory to assign the remote build container'
|
description: 'Amount of memory to assign the remote build container'
|
||||||
cachePushOverrideCommand:
|
|
||||||
default: ''
|
|
||||||
required: false
|
|
||||||
description: 'A command run every time a file is pushed to cache, formatted with input file path and remote cache path'
|
|
||||||
cachePullOverrideCommand:
|
|
||||||
default: ''
|
|
||||||
required: false
|
|
||||||
description: 'A command run every time before a file is being pulled from cache, formatted with request cache file and destination path'
|
|
||||||
readInputFromOverrideList:
|
readInputFromOverrideList:
|
||||||
default: ''
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -158,14 +150,6 @@ inputs:
|
||||||
default: ''
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
description: 'Cache key to indicate bucket for cache'
|
description: 'Cache key to indicate bucket for cache'
|
||||||
checkDependencyHealthOverride:
|
|
||||||
default: ''
|
|
||||||
required: false
|
|
||||||
description: 'Use to specify a way to check depdency services health to enable resilient self-starting jobs'
|
|
||||||
startDependenciesOverride:
|
|
||||||
default: ''
|
|
||||||
required: false
|
|
||||||
description: 'Use to specify a way to start depdency services health to enable resilient self-starting jobs'
|
|
||||||
watchToEnd:
|
watchToEnd:
|
||||||
default: 'true'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
|
|
|
||||||
|
|
@ -292,8 +292,6 @@ class BuildParameters {
|
||||||
logId: nanoid_1.customAlphabet(cloud_runner_constants_1.default.alphabet, 9)(),
|
logId: nanoid_1.customAlphabet(cloud_runner_constants_1.default.alphabet, 9)(),
|
||||||
buildGuid: cloud_runner_guid_1.default.generateGuid(input_1.default.runNumber, input_1.default.targetPlatform),
|
buildGuid: cloud_runner_guid_1.default.generateGuid(input_1.default.runNumber, input_1.default.targetPlatform),
|
||||||
customJobHooks: cloud_runner_options_1.default.customJobHooks(),
|
customJobHooks: cloud_runner_options_1.default.customJobHooks(),
|
||||||
cachePullOverrideCommand: cloud_runner_options_1.default.cachePullOverrideCommand(),
|
|
||||||
cachePushOverrideCommand: cloud_runner_options_1.default.cachePushOverrideCommand(),
|
|
||||||
readInputOverrideCommand: cloud_runner_options_1.default.readInputOverrideCommand(),
|
readInputOverrideCommand: cloud_runner_options_1.default.readInputOverrideCommand(),
|
||||||
readInputFromOverrideList: cloud_runner_options_1.default.readInputFromOverrideList(),
|
readInputFromOverrideList: cloud_runner_options_1.default.readInputFromOverrideList(),
|
||||||
kubeStorageClass: cloud_runner_options_1.default.kubeStorageClass,
|
kubeStorageClass: cloud_runner_options_1.default.kubeStorageClass,
|
||||||
|
|
@ -652,15 +650,6 @@ class CloudRunnerOptions {
|
||||||
static customJobHooks() {
|
static customJobHooks() {
|
||||||
return CloudRunnerOptions.getInput('customJobHooks') || '';
|
return CloudRunnerOptions.getInput('customJobHooks') || '';
|
||||||
}
|
}
|
||||||
static cachePushOverrideCommand() {
|
|
||||||
return CloudRunnerOptions.getInput('cachePushOverrideCommand') || '';
|
|
||||||
}
|
|
||||||
static cachePullOverrideCommand() {
|
|
||||||
return CloudRunnerOptions.getInput('cachePullOverrideCommand') || '';
|
|
||||||
}
|
|
||||||
static storageProvider() {
|
|
||||||
return CloudRunnerOptions.getInput('storageProvider') || 'shared-volume'; // TODO also need to accept premade types AWS S3 + GCP Storage and custom yaml definitions
|
|
||||||
}
|
|
||||||
static readInputFromOverrideList() {
|
static readInputFromOverrideList() {
|
||||||
return CloudRunnerOptions.getInput('readInputFromOverrideList') || '';
|
return CloudRunnerOptions.getInput('readInputFromOverrideList') || '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -46,8 +46,6 @@ class BuildParameters {
|
||||||
public kubeStorageClass!: string;
|
public kubeStorageClass!: string;
|
||||||
public chownFilesTo!: string;
|
public chownFilesTo!: string;
|
||||||
public customJobHooks!: string;
|
public customJobHooks!: string;
|
||||||
public cachePushOverrideCommand!: string;
|
|
||||||
public cachePullOverrideCommand!: string;
|
|
||||||
public readInputFromOverrideList!: string;
|
public readInputFromOverrideList!: string;
|
||||||
public readInputOverrideCommand!: string;
|
public readInputOverrideCommand!: string;
|
||||||
public checkDependencyHealthOverride!: string;
|
public checkDependencyHealthOverride!: string;
|
||||||
|
|
@ -95,7 +93,6 @@ class BuildParameters {
|
||||||
editorVersion,
|
editorVersion,
|
||||||
customImage: Input.customImage,
|
customImage: Input.customImage,
|
||||||
unitySerial,
|
unitySerial,
|
||||||
|
|
||||||
runnerTempPath: process.env.RUNNER_TEMP,
|
runnerTempPath: process.env.RUNNER_TEMP,
|
||||||
targetPlatform: Input.targetPlatform,
|
targetPlatform: Input.targetPlatform,
|
||||||
projectPath: Input.projectPath,
|
projectPath: Input.projectPath,
|
||||||
|
|
@ -138,8 +135,6 @@ class BuildParameters {
|
||||||
logId: customAlphabet(CloudRunnerConstants.alphabet, 9)(),
|
logId: customAlphabet(CloudRunnerConstants.alphabet, 9)(),
|
||||||
buildGuid: CloudRunnerBuildGuid.generateGuid(Input.runNumber, Input.targetPlatform),
|
buildGuid: CloudRunnerBuildGuid.generateGuid(Input.runNumber, Input.targetPlatform),
|
||||||
customJobHooks: CloudRunnerOptions.customJobHooks(),
|
customJobHooks: CloudRunnerOptions.customJobHooks(),
|
||||||
cachePullOverrideCommand: CloudRunnerOptions.cachePullOverrideCommand(),
|
|
||||||
cachePushOverrideCommand: CloudRunnerOptions.cachePushOverrideCommand(),
|
|
||||||
readInputOverrideCommand: CloudRunnerOptions.readInputOverrideCommand(),
|
readInputOverrideCommand: CloudRunnerOptions.readInputOverrideCommand(),
|
||||||
readInputFromOverrideList: CloudRunnerOptions.readInputFromOverrideList(),
|
readInputFromOverrideList: CloudRunnerOptions.readInputFromOverrideList(),
|
||||||
kubeStorageClass: CloudRunnerOptions.kubeStorageClass,
|
kubeStorageClass: CloudRunnerOptions.kubeStorageClass,
|
||||||
|
|
|
||||||
|
|
@ -77,18 +77,6 @@ class CloudRunnerOptions {
|
||||||
return CloudRunnerOptions.getInput('customJobHooks') || '';
|
return CloudRunnerOptions.getInput('customJobHooks') || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
static cachePushOverrideCommand() {
|
|
||||||
return CloudRunnerOptions.getInput('cachePushOverrideCommand') || '';
|
|
||||||
}
|
|
||||||
|
|
||||||
static cachePullOverrideCommand() {
|
|
||||||
return CloudRunnerOptions.getInput('cachePullOverrideCommand') || '';
|
|
||||||
}
|
|
||||||
|
|
||||||
static storageProvider() {
|
|
||||||
return CloudRunnerOptions.getInput('storageProvider') || 'shared-volume'; // TODO also need to accept premade types AWS S3 + GCP Storage and custom yaml definitions
|
|
||||||
}
|
|
||||||
|
|
||||||
static readInputFromOverrideList() {
|
static readInputFromOverrideList() {
|
||||||
return CloudRunnerOptions.getInput('readInputFromOverrideList') || '';
|
return CloudRunnerOptions.getInput('readInputFromOverrideList') || '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue