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