Printenv and log messages with version hash improved

pull/289/head
Frostebite 2021-08-13 21:09:01 +01:00
parent 3f9088309e
commit 13bc419728
4 changed files with 11 additions and 7 deletions

8
dist/index.js vendored
View File

@ -1058,7 +1058,7 @@ class AWSBuildEnvironment {
if (!stackExists) {
core.info('stack does not exist');
yield CF.createStack(createStackInput).promise();
core.info('created stack');
core.info(`created stack (version: ${hash})`);
}
const CFState = yield describeStack();
let stack = (_b = CFState.Stacks) === null || _b === void 0 ? void 0 : _b[0];
@ -1070,7 +1070,7 @@ class AWSBuildEnvironment {
yield CF.waitFor('stackCreateComplete', describeStackInput).promise();
}
if (stackExists) {
core.info(`stack exists, stack version is ${stackVersion}, local version is ${hash}`);
core.info(`Base stack exists (version: ${stackVersion}, local version: ${hash})`);
if (hash !== stackVersion) {
core.info(`Updating`);
yield CF.updateStack(updateInput).promise();
@ -2206,7 +2206,9 @@ class RemoteBuilder {
const initializeSourceRepoForCaching = `${this.builderPathFull}/dist/remote-builder/cloneNoLFS.sh "${this.repoPathFull}" "${repo3}" "$GITHUB_SHA" "${testLFSFile}"`;
const handleCaching = `${this.builderPathFull}/dist/remote-builder/handleCaching.sh "${cacheFolderFull}" "${branchName}" "${this.libraryFolderFull}" "${lfsDirectory}" "${purgeRemoteCache}"`;
yield this.RemoteBuilderProviderPlatform.runBuildTask(this.buildId, 'alpine/git', [
` apk update -q
` printenv
#
apk update -q
apk add unzip zip git-lfs jq tree -q
#
mkdir -p ${this.buildPathFull}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -267,7 +267,7 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
if (!stackExists) {
core.info('stack does not exist');
await CF.createStack(createStackInput).promise();
core.info('created stack');
core.info(`created stack (version: ${hash})`);
}
const CFState = await describeStack();
let stack = CFState.Stacks?.[0];
@ -281,7 +281,7 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
}
if (stackExists) {
core.info(`stack exists, stack version is ${stackVersion}, local version is ${hash}`);
core.info(`Base stack exists (version: ${stackVersion}, local version: ${hash})`);
if (hash !== stackVersion) {
core.info(`Updating`);
await CF.updateStack(updateInput).promise();

View File

@ -92,7 +92,9 @@ class RemoteBuilder {
this.buildId,
'alpine/git',
[
` apk update -q
` printenv
#
apk update -q
apk add unzip zip git-lfs jq tree -q
#
mkdir -p ${this.buildPathFull}