Configure AWS with action
parent
9d750597a3
commit
3a03d6908c
|
|
@ -43,16 +43,13 @@ jobs:
|
|||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-2
|
||||
aws-region: eu-west-1
|
||||
- uses: ./
|
||||
id: aws-fargate-unity-build
|
||||
env:
|
||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
with:
|
||||
remote: aws
|
||||
awsRegion: eu-west-1
|
||||
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
projectPath: ${{ matrix.projectPath }}
|
||||
unityVersion: ${{ matrix.unityVersion }}
|
||||
targetPlatform: ${{ matrix.targetPlatform }}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -7,11 +7,6 @@ const core = require('@actions/core');
|
|||
|
||||
class AWS {
|
||||
static async runBuildJob(buildParameters, baseImage) {
|
||||
SDK.config.update({
|
||||
region: buildParameters.awsRegion,
|
||||
secretAccessKey: buildParameters.awsSecretAccessKey,
|
||||
accessKeyId: buildParameters.awsAccessKeyId,
|
||||
});
|
||||
await this.run(buildParameters.awsStackName, baseImage.toString());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,9 +50,6 @@ class BuildParameters {
|
|||
githubToken: Input.githubToken,
|
||||
remote: Input.remote,
|
||||
awsStackName: Input.awsStackName,
|
||||
awsRegion: Input.awsRegion,
|
||||
awsAccessKeyId: Input.awsAccessKeyId,
|
||||
awsSecretAccessKey: Input.awsSecretAccessKey,
|
||||
kubeContainerMemory: Input.kubeContainerMemory,
|
||||
kubeContainerCPU: Input.kubeContainerCPU,
|
||||
kubeVolumeSize: Input.kubeVolumeSize,
|
||||
|
|
|
|||
|
|
@ -93,18 +93,6 @@ class Input {
|
|||
return core.getInput('awsStackName') || '';
|
||||
}
|
||||
|
||||
static get awsRegion() {
|
||||
return core.getInput('awsRegion') || '';
|
||||
}
|
||||
|
||||
static get awsAccessKeyId() {
|
||||
return core.getInput('awsAccessKeyId') || '';
|
||||
}
|
||||
|
||||
static get awsSecretAccessKey() {
|
||||
return core.getInput('awsSecretAccessKey') || '';
|
||||
}
|
||||
|
||||
static get kubeConfig() {
|
||||
return core.getInput('kubeConfig') || '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue