AccessKeyId and SecretAccessKey param for aws
parent
4518ecd122
commit
9d750597a3
|
|
@ -50,6 +50,9 @@ jobs:
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
with:
|
with:
|
||||||
remote: aws
|
remote: aws
|
||||||
|
awsRegion: eu-west-1
|
||||||
|
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
projectPath: ${{ matrix.projectPath }}
|
projectPath: ${{ matrix.projectPath }}
|
||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
targetPlatform: ${{ matrix.targetPlatform }}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,14 @@ inputs:
|
||||||
default: 'eu-west-1'
|
default: 'eu-west-1'
|
||||||
required: false
|
required: false
|
||||||
description: ''
|
description: ''
|
||||||
|
awsAccessKeyId:
|
||||||
|
default: ''
|
||||||
|
required: false
|
||||||
|
description: 'AWS Access Key Id'
|
||||||
|
awsAccessKey:
|
||||||
|
default: ''
|
||||||
|
required: false
|
||||||
|
description: 'AWS Access Key Secret'
|
||||||
kubeConfig:
|
kubeConfig:
|
||||||
default: ''
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -7,7 +7,11 @@ const core = require('@actions/core');
|
||||||
|
|
||||||
class AWS {
|
class AWS {
|
||||||
static async runBuildJob(buildParameters, baseImage) {
|
static async runBuildJob(buildParameters, baseImage) {
|
||||||
SDK.config.update({ region: buildParameters.awsRegion });
|
SDK.config.update({
|
||||||
|
region: buildParameters.awsRegion,
|
||||||
|
secretAccessKey: buildParameters.awsSecretAccessKey,
|
||||||
|
accessKeyId: buildParameters.awsAccessKeyId,
|
||||||
|
});
|
||||||
await this.run(buildParameters.awsStackName, baseImage.toString());
|
await this.run(buildParameters.awsStackName, baseImage.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ class BuildParameters {
|
||||||
remote: Input.remote,
|
remote: Input.remote,
|
||||||
awsStackName: Input.awsStackName,
|
awsStackName: Input.awsStackName,
|
||||||
awsRegion: Input.awsRegion,
|
awsRegion: Input.awsRegion,
|
||||||
|
awsAccessKeyId: Input.awsAccessKeyId,
|
||||||
|
awsSecretAccessKey: Input.awsSecretAccessKey,
|
||||||
kubeContainerMemory: Input.kubeContainerMemory,
|
kubeContainerMemory: Input.kubeContainerMemory,
|
||||||
kubeContainerCPU: Input.kubeContainerCPU,
|
kubeContainerCPU: Input.kubeContainerCPU,
|
||||||
kubeVolumeSize: Input.kubeVolumeSize,
|
kubeVolumeSize: Input.kubeVolumeSize,
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,14 @@ class Input {
|
||||||
return core.getInput('awsRegion') || '';
|
return core.getInput('awsRegion') || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static get awsAccessKeyId() {
|
||||||
|
return core.getInput('awsAccessKeyId') || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
static get awsSecretAccessKey() {
|
||||||
|
return core.getInput('awsSecretAccessKey') || '';
|
||||||
|
}
|
||||||
|
|
||||||
static get kubeConfig() {
|
static get kubeConfig() {
|
||||||
return core.getInput('kubeConfig') || '';
|
return core.getInput('kubeConfig') || '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue