Skip to content

Commit

Permalink
main: use new debug flag to get messages from background proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed Aug 8, 2023
1 parent bab4f78 commit 4c37ef8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const nscRemoteBuilderName = "nsc-remote";
export const nscDebugFilePath = "/home/runner/nsc/buildkit_proxy.log";
export const nscDebugFolder = "/home/runner/nsc";
export const nscVmIdKey = 'NSC_VM_ID';
4 changes: 2 additions & 2 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4319,7 +4319,7 @@ var exec = __nccwpck_require__(514);
var external_fs_ = __nccwpck_require__(147);
;// CONCATENATED MODULE: ./common.ts
const nscRemoteBuilderName = "nsc-remote";
const nscDebugFilePath = "/home/runner/nsc/buildkit_proxy.log";
const nscDebugFolder = "/home/runner/nsc";
const nscVmIdKey = 'NSC_VM_ID';

;// CONCATENATED MODULE: ./main.ts
Expand Down Expand Up @@ -4368,7 +4368,7 @@ function prepareBuildx() {
const nscRunner = yield isNscRunner();
if (nscRunner) {
core.debug(`Environment is Namespace Runner`);
yield exec.exec(`nsc docker buildx setup --name=${nscRemoteBuilderName} --background --use --debug_to_file=${nscDebugFilePath}`);
yield exec.exec(`nsc docker buildx setup --name=${nscRemoteBuilderName} --background --use --background_debug_dir=${nscDebugFolder}`);
}
else {
core.debug(`Environment is not Namespace Runner`);
Expand Down
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as core from "@actions/core";
import * as exec from "@actions/exec";
import * as fs from "fs";
import { nscRemoteBuilderName, nscDebugFilePath, nscVmIdKey } from "./common";
import { nscRemoteBuilderName, nscDebugFolder, nscVmIdKey } from "./common";

async function run(): Promise<void> {
var commandExists = require("command-exists");
Expand Down Expand Up @@ -42,7 +42,7 @@ async function prepareBuildx(): Promise<void> {
if (nscRunner) {
core.debug(`Environment is Namespace Runner`);
await exec.exec(
`nsc docker buildx setup --name=${nscRemoteBuilderName} --background --use --debug_to_file=${nscDebugFilePath}`
`nsc docker buildx setup --name=${nscRemoteBuilderName} --background --use --background_debug_dir=${nscDebugFolder}`
);
} else {
core.debug(`Environment is not Namespace Runner`);
Expand Down

0 comments on commit 4c37ef8

Please sign in to comment.