Caching cleanup
parent
30be1cf59a
commit
a0da611901
|
|
@ -77,7 +77,7 @@ jobs:
|
|||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_DEFAULT_REGION: eu-west-2
|
||||
DEBUG: true
|
||||
GCP_LOG_FILE: $HOME/cloud-runner-logs
|
||||
GCP_LOG_FILE: $GITHUB_WORKSPACE/cloud-runner-logs
|
||||
INIT_HOOK: touch $GCP_LOG_FILE && tail -f $GCP_LOG_FILE | xargs -I{} gcloud logging write game-ci "{}"
|
||||
with:
|
||||
cloudRunnerCluster: aws
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ jobs:
|
|||
env:
|
||||
CloudRunnerBranch: remote-builder/unified-providers
|
||||
DEBUG: true
|
||||
GCP_LOG_FILE: $HOME/cloud-runner-logs
|
||||
GCP_LOG_FILE: $GITHUB_WORKSPACE/cloud-runner-logs
|
||||
INIT_HOOK: touch $GCP_LOG_FILE && tail -f $GCP_LOG_FILE | xargs -I{} gcloud logging write game-ci "{}"
|
||||
with:
|
||||
cloudRunnerCluster: k8s
|
||||
|
|
|
|||
|
|
@ -2588,7 +2588,6 @@ const core = __importStar(__webpack_require__(42186));
|
|||
const child_process_1 = __webpack_require__(63129);
|
||||
const __1 = __webpack_require__(41359);
|
||||
const fs_1 = __importDefault(__webpack_require__(35747));
|
||||
const path_1 = __importDefault(__webpack_require__(85622));
|
||||
class CloudRunnerLogger {
|
||||
static setup() {
|
||||
this.timestamp = this.createTimestamp();
|
||||
|
|
@ -2648,7 +2647,7 @@ class CloudRunnerLogger {
|
|||
CloudRunnerLogger.child.kill(0);
|
||||
}
|
||||
}
|
||||
CloudRunnerLogger.logsFile = path_1.default.join('/', 'cloud-runner-logs');
|
||||
CloudRunnerLogger.logsFile = process.env.GCP_LOG_FILE || '';
|
||||
exports.default = CloudRunnerLogger;
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -2,12 +2,11 @@ import * as core from '@actions/core';
|
|||
import { ChildProcess, exec } from 'child_process';
|
||||
import { Input } from '../..';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
class CloudRunnerLogger {
|
||||
private static timestamp: number;
|
||||
private static globalTimestamp: number;
|
||||
private static readonly logsFile: string = path.join('/', 'cloud-runner-logs');
|
||||
private static readonly logsFile: string = process.env.GCP_LOG_FILE || '';
|
||||
|
||||
public static setup() {
|
||||
this.timestamp = this.createTimestamp();
|
||||
|
|
|
|||
Loading…
Reference in New Issue