Log to google for GCP_LOGGING
parent
1d669f4b8c
commit
d8312bafe8
|
|
@ -68,6 +68,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
AWS_BASE_STACK_NAME: game-ci-stack-integration-tests
|
||||
CLOUD_RUNNER_TESTS: true
|
||||
- run: aws s3 ls
|
||||
- uses: ./
|
||||
id: aws-fargate-unity-build
|
||||
env:
|
||||
|
|
@ -96,8 +97,8 @@ jobs:
|
|||
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/$BUILD_PATH/$BUILD_FILE"
|
||||
aws s3 cp /data/cache/$BRANCH/build-$BUILD_GUID.zip s3://game-ci-test-storage/$BUILD_PATH/$BUILD_FILE
|
||||
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_FILE
|
||||
secrets:
|
||||
- name: awsAccessKeyId
|
||||
value: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
|
|
@ -105,3 +106,15 @@ jobs:
|
|||
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 }}/${{ steps.aws-fargate-unity-build.outputs.BUILD_FILE }} .
|
||||
ls
|
||||
###########################
|
||||
# Upload #
|
||||
###########################
|
||||
# download from cloud storage
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: AWS Build (${{ matrix.targetPlatform }})
|
||||
path: ${{ matrix.targetPlatform }}.zip
|
||||
retention-days: 14
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ jobs:
|
|||
# Use FUSE to mount a storage bucket to a cache folder
|
||||
EXPERIMENTAL_HOOK: |
|
||||
- name: FUSE filesystem to s3 for global scale caching
|
||||
hook: before
|
||||
hook: [ before ]
|
||||
step: [ setup ]
|
||||
commands: |
|
||||
sudo amazon-linux-extras install epel
|
||||
|
|
@ -109,13 +109,3 @@ jobs:
|
|||
unityVersion: 2019.3.15f1
|
||||
versioning: None
|
||||
cloudRunnerTests: true
|
||||
|
||||
###########################
|
||||
# Upload #
|
||||
###########################
|
||||
# download from cloud storage
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Kubernetes Build (${{ matrix.targetPlatform }})
|
||||
path: k8s-volume-download
|
||||
retention-days: 14
|
||||
|
|
|
|||
|
|
@ -2679,6 +2679,7 @@ const __1 = __webpack_require__(41359);
|
|||
const image_environment_factory_1 = __importDefault(__webpack_require__(25145));
|
||||
const cloud_runner_state_1 = __webpack_require__(70912);
|
||||
const cloud_runner_build_command_process_1 = __webpack_require__(71899);
|
||||
const core = __webpack_require__(42186);
|
||||
class TaskParameterSerializer {
|
||||
static readBuildEnvironmentVariables() {
|
||||
TaskParameterSerializer.setupDefaultSecrets();
|
||||
|
|
@ -2712,6 +2713,7 @@ class TaskParameterSerializer {
|
|||
array = array.map((x) => {
|
||||
x.name = __1.Input.ToEnvVarFormat(x.name);
|
||||
x.value = `${x.value}`;
|
||||
core.setOutput(x.name, x.value);
|
||||
return x;
|
||||
});
|
||||
return array;
|
||||
|
|
@ -2902,7 +2904,7 @@ class BuildStep {
|
|||
${__1.Input.cloudRunnerTests ? '' : '#'} tree -lh
|
||||
zip -r "build-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" "build"
|
||||
${__1.Input.cloudRunnerTests ? '' : '#'} tree -lh
|
||||
${__1.Input.cloudRunnerTests ? '' : '#'} tree -lh "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}"
|
||||
${__1.Input.cloudRunnerTests ? '' : '#'} tree -lh "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}"
|
||||
mv "build-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}"
|
||||
${__1.Input.cloudRunnerTests ? '' : '#'} tree -lh "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}"
|
||||
${hooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3,6 +3,7 @@ import ImageEnvironmentFactory from '../../image-environment-factory';
|
|||
import CloudRunnerEnvironmentVariable from './cloud-runner-environment-variable';
|
||||
import { CloudRunnerState } from '../state/cloud-runner-state';
|
||||
import { CloudRunnerBuildCommandProcessor } from './cloud-runner-build-command-process';
|
||||
const core = require('@actions/core');
|
||||
|
||||
export class TaskParameterSerializer {
|
||||
public static readBuildEnvironmentVariables(): CloudRunnerEnvironmentVariable[] {
|
||||
|
|
@ -40,6 +41,7 @@ export class TaskParameterSerializer {
|
|||
array = array.map((x) => {
|
||||
x.name = Input.ToEnvVarFormat(x.name);
|
||||
x.value = `${x.value}`;
|
||||
core.setOutput(x.name, x.value);
|
||||
return x;
|
||||
});
|
||||
return array;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export class BuildStep implements StepInterface {
|
|||
${Input.cloudRunnerTests ? '' : '#'} tree -lh
|
||||
zip -r "build-${CloudRunnerState.buildParams.buildGuid}.zip" "build"
|
||||
${Input.cloudRunnerTests ? '' : '#'} tree -lh
|
||||
${Input.cloudRunnerTests ? '' : '#'} tree -lh "${CloudRunnerState.cacheFolderFull}"
|
||||
${Input.cloudRunnerTests ? '' : '#'} tree -lh "${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}"
|
||||
mv "build-${CloudRunnerState.buildParams.buildGuid}.zip" "${CloudRunnerState.cacheFolderFull.replace(
|
||||
/\\/g,
|
||||
`/`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue