support remoteBuildCpu and remoteBuildContainer parameters for aws
parent
1de50dfe51
commit
04e86d710b
10
action.yml
10
action.yml
|
|
@ -46,18 +46,18 @@ inputs:
|
|||
default: ''
|
||||
required: false
|
||||
description: 'Supply a Persistent Volume Claim name to use for the Unity build.'
|
||||
kubeContainerMemory:
|
||||
remoteBuildMemory:
|
||||
default: '800M'
|
||||
required: false
|
||||
description: 'Amount of memory to assign the build container in Kubernetes (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-units-in-kubernetes)'
|
||||
kubeContainerCPU:
|
||||
description: 'Amount of memory to assign the remote build container'
|
||||
remoteBuildCpu:
|
||||
default: '0.25'
|
||||
required: false
|
||||
description: 'Amount of CPU time to assign the build container in Kubernetes (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-units-in-kubernetes)'
|
||||
description: 'Amount of CPU time to assign the remote build container'
|
||||
kubeVolumeSize:
|
||||
default: '5Gi'
|
||||
required: false
|
||||
description: 'Amount of disc space to assign the Kubernetes Persistent Volume (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-units-in-kubernetes)'
|
||||
description: 'Amount of disc space to assign the Kubernetes Persistent Volume'
|
||||
githubToken:
|
||||
default: ''
|
||||
required: false
|
||||
|
|
|
|||
|
|
@ -113,6 +113,14 @@ class AWS {
|
|||
`/${efsDirectoryName}`,
|
||||
`/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/`,
|
||||
[
|
||||
{
|
||||
name: 'ContainerMemory',
|
||||
value: buildParameters.remoteBuildMemory,
|
||||
},
|
||||
{
|
||||
name: 'ContainerCpu',
|
||||
value: buildParameters.remoteBuildCpu,
|
||||
},
|
||||
{
|
||||
name: 'GITHUB_WORKSPACE',
|
||||
value: `/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/`,
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ class BuildParameters {
|
|||
awsStackName: Input.awsStackName,
|
||||
kubeConfig: Input.kubeConfig,
|
||||
githubToken: Input.githubToken,
|
||||
kubeContainerMemory: Input.kubeContainerMemory,
|
||||
kubeContainerCPU: Input.kubeContainerCPU,
|
||||
remoteBuildMemory: Input.remoteBuildMemory,
|
||||
remoteBuildCpu: Input.remoteBuilderCpu,
|
||||
kubeVolumeSize: Input.kubeVolumeSize,
|
||||
kubeVolume: Input.kubeVolume,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -101,12 +101,12 @@ class Input {
|
|||
return core.getInput('githubToken') || '';
|
||||
}
|
||||
|
||||
static get kubeContainerMemory() {
|
||||
return core.getInput('kubeContainerMemory') || '800M';
|
||||
static get remoteBuildMemory() {
|
||||
return core.getInput('remoteBuildMemory') || '800M';
|
||||
}
|
||||
|
||||
static get kubeContainerCPU() {
|
||||
return core.getInput('kubeContainerCPU') || '0.25';
|
||||
static get remoteBuildCPU() {
|
||||
return core.getInput('remoteBuildCpu') || '0.25';
|
||||
}
|
||||
|
||||
static get kubeVolumeSize() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue