running git lfs clone

pull/218/head
mdugdale 2021-02-14 20:43:52 +00:00
parent f483022e66
commit 05834087dd
3 changed files with 14 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@ -50,22 +50,22 @@ Parameters:
Default: '/efsdata' Default: '/efsdata'
GithubToken: GithubToken:
Type: String Type: String
Default: 'Secret' Default: ''
UnityLicense: UnityLicense:
Type: String Type: String
Default: 'Secret' Default: ''
AndroidKeystoreBase64: AndroidKeystoreBase64:
Type: String Type: String
Default: 'Secret' Default: '0'
AndroidKeystorePass: AndroidKeystorePass:
Type: String Type: String
Default: 'Secret' Default: '0'
AndroidKeyAliasPass: AndroidKeyAliasPass:
Type: String Type: String
Default: 'Secret' Default: '0'
BUILDID: BUILDID:
Type: String Type: String
Default: 'noid' Default: ''
Mappings: Mappings:
SubnetConfig: SubnetConfig:
VPC: VPC:

View File

@ -47,11 +47,9 @@ class AWS {
baseImage.toString(), baseImage.toString(),
['/bin/sh'], ['/bin/sh'],
['-c', ` ['-c', `
if [$GITHUB_TOKEN -eq 'Secret']; then unset GITHUB_TOKEN; fi; if [$ANDROID_KEYSTORE_BASE64 -eq '0']; then unset ANDROID_KEYSTORE_BASE64; fi;
if [$UNITY_LICENSE -eq 'Secret']; then unset UNITY_LICENSE; fi; if [$ANDROID_KEYSTORE_PASS -eq '0']; then unset ANDROID_KEYSTORE_PASS; fi;
if [$ANDROID_KEYSTORE_BASE64 -eq 'Secret']; then unset ANDROID_KEYSTORE_BASE64; fi; if [$ANDROID_KEYALIAS_PASS -eq '0']; then unset ANDROID_KEYALIAS_PASS; fi;
if [$ANDROID_KEYSTORE_PASS -eq 'Secret']; then unset ANDROID_KEYSTORE_PASS; fi;
if [$ANDROID_KEYALIAS_PASS -eq 'Secret']; then unset ANDROID_KEYALIAS_PASS; fi;
cp -r /data/$BUILD_ID/builder/action/default-build-script /UnityBuilderAction; cp -r /data/$BUILD_ID/builder/action/default-build-script /UnityBuilderAction;
cp -r /data/$BUILD_ID/builder/action/entrypoint.sh /entrypoint.sh; cp -r /data/$BUILD_ID/builder/action/entrypoint.sh /entrypoint.sh;
cp -r /data/$BUILD_ID/builder/action/steps /steps; cp -r /data/$BUILD_ID/builder/action/steps /steps;
@ -115,7 +113,7 @@ class AWS {
[ [
{ {
ParameterKey: 'GithubToken', ParameterKey: 'GithubToken',
ParameterValue: buildParameters.githubToken ParameterValue: buildParameters.githubToken,
}, },
{ {
ParameterKey: 'UnityLicense', ParameterKey: 'UnityLicense',
@ -123,15 +121,15 @@ class AWS {
}, },
{ {
ParameterKey: 'AndroidKeystoreBase64', ParameterKey: 'AndroidKeystoreBase64',
ParameterValue: buildParameters.androidKeystoreBase64 ParameterValue: buildParameters.androidKeystoreBase64?buildParameters.androidKeystoreBase64:0
}, },
{ {
ParameterKey: 'AndroidKeystorePass', ParameterKey: 'AndroidKeystorePass',
ParameterValue: buildParameters.androidKeystorePass ParameterValue: buildParameters.androidKeystorePass?buildParameters.androidKeystorePass:0
}, },
{ {
ParameterKey: 'AndroidKeyAliasPass', ParameterKey: 'AndroidKeyAliasPass',
ParameterValue: buildParameters.androidKeyaliasPass ParameterValue: buildParameters.androidKeyaliasPass?buildParameters.androidKeyaliasPass:0
}, },
] ]
); );