Caching cleanup
parent
c856879f79
commit
4c480f61d6
|
|
@ -68,7 +68,6 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
AWS_BASE_STACK_NAME: game-ci-stack-integration-tests
|
AWS_BASE_STACK_NAME: game-ci-stack-integration-tests
|
||||||
CLOUD_RUNNER_TESTS: true
|
CLOUD_RUNNER_TESTS: true
|
||||||
- run: aws s3 ls
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: aws-fargate-unity-build
|
id: aws-fargate-unity-build
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -109,3 +109,34 @@ jobs:
|
||||||
unityVersion: 2019.3.15f1
|
unityVersion: 2019.3.15f1
|
||||||
versioning: None
|
versioning: None
|
||||||
cloudRunnerTests: true
|
cloudRunnerTests: true
|
||||||
|
postBuildSteps: |
|
||||||
|
- name: upload
|
||||||
|
image: amazon/aws-cli
|
||||||
|
commands: |
|
||||||
|
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile default
|
||||||
|
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile default
|
||||||
|
aws configure set region $AWS_DEFAULT_REGION --profile default
|
||||||
|
aws s3 ls
|
||||||
|
aws s3 ls game-ci-test-storage
|
||||||
|
ls /data/cache/$BRANCH
|
||||||
|
echo "/data/cache/$BRANCH/build-$BUILD_GUID.zip s3://game-ci-test-storage/$BRANCH/$BUILD_FILE"
|
||||||
|
aws s3 cp /data/cache/$BRANCH/build-$BUILD_GUID.zip s3://game-ci-test-storage/$BRANCH/build-$BUILD_GUID.zip
|
||||||
|
secrets:
|
||||||
|
- name: awsAccessKeyId
|
||||||
|
value: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
- name: awsSecretAccessKey
|
||||||
|
value: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
- name: awsDefaultRegion
|
||||||
|
value: eu-west-2
|
||||||
|
- run: |
|
||||||
|
aws s3 cp s3://game-ci-test-storage/${{ steps.aws-fargate-unity-build.outputs.BRANCH }}/build-${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip build-${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip
|
||||||
|
ls
|
||||||
|
###########################
|
||||||
|
# Upload #
|
||||||
|
###########################
|
||||||
|
# download from cloud storage
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: K8s Build (${{ matrix.targetPlatform }})
|
||||||
|
path: build-${{ steps.k8s-unity-build.outputs.BUILD_GUID }}.zip
|
||||||
|
retention-days: 14
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ describe('Cloud Runner', () => {
|
||||||
};
|
};
|
||||||
if (Input.cloudRunnerTests) {
|
if (Input.cloudRunnerTests) {
|
||||||
it('All build parameters sent to cloud runner as env vars', async () => {
|
it('All build parameters sent to cloud runner as env vars', async () => {
|
||||||
|
Input.githubInputEnabled = false;
|
||||||
const buildParameter = await BuildParameters.create();
|
const buildParameter = await BuildParameters.create();
|
||||||
const baseImage = new ImageTag(buildParameter);
|
const baseImage = new ImageTag(buildParameter);
|
||||||
const file = await CloudRunner.run(buildParameter, baseImage.toString());
|
const file = await CloudRunner.run(buildParameter, baseImage.toString());
|
||||||
|
|
@ -43,6 +44,7 @@ describe('Cloud Runner', () => {
|
||||||
expect(newLinePurgedFile).toContain(`${element.name}=${element.value}`);
|
expect(newLinePurgedFile).toContain(`${element.name}=${element.value}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Input.githubInputEnabled = true;
|
||||||
}, 1000000);
|
}, 1000000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue