Skip to content

Commit

Permalink
feat(docker): pass gtm event id to docker executors
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jun 18, 2018
1 parent 7969384 commit 9e32a14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/executors/ExecutorDocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class ExecutorDocker extends Executor {
Object.keys(envObj).forEach(key => {
envArray.push(`${key}=${envObj[key]}`);
});
envArray.push('GTM_EVENT_ID', this.eventId);
return envArray;
}

Expand Down Expand Up @@ -217,7 +218,7 @@ export class ExecutorDocker extends Executor {
}
container.modem.demuxStream(stream, logStream, logStream);
stream.on('end', () => {
let lines = logBuffer.reverse().join('');
let lines = logBuffer.join('');
log.info(lines);
executor.taskOutputTail += lines;
logBuffer = [];
Expand Down

0 comments on commit 9e32a14

Please sign in to comment.