Skip to content

Commit

Permalink
main: improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed May 8, 2023
1 parent ca60990 commit e1b1e32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4388,10 +4388,10 @@ function prepareBuildx() {
yield core.group(`Ensure Namespace Builder proxy is already configured`, () => __awaiter(this, void 0, void 0, function* () {
const builderExists = yield remoteNscBuilderExists();
if (builderExists) {
core.info(`
GitHub runner is already configured to use Namespace Cloud build cluster.`);
core.info(`GitHub runner is already configured to use Namespace Cloud build cluster.`);
return;
}
core.info(`Namespace Builder is not yet configured.`);
}));
const sock = tmpFile("buildkit-proxy.sock");
yield core.group(`Proxy Buildkit from Namespace Cloud`, () => __awaiter(this, void 0, void 0, function* () {
Expand All @@ -4400,7 +4400,7 @@ GitHub runner is already configured to use Namespace Cloud build cluster.`);
yield exec.exec(`docker buildx create --name ${nscRemoteBuilderName} --driver remote unix://${sock} --use`);
}));
yield core.group(`Builder`, () => __awaiter(this, void 0, void 0, function* () {
core.info("remote-nsc");
core.info(nscRemoteBuilderName);
}));
// New line to separate from groups.
core.info(`
Expand Down
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ async function prepareBuildx(): Promise<void> {
await core.group(`Ensure Namespace Builder proxy is already configured`, async () => {
const builderExists = await remoteNscBuilderExists();
if (builderExists) {
core.info(`
GitHub runner is already configured to use Namespace Cloud build cluster.`);
core.info(`GitHub runner is already configured to use Namespace Cloud build cluster.`);
return;
}
core.info(`Namespace Builder is not yet configured.`);
});

const sock = tmpFile("buildkit-proxy.sock");
Expand All @@ -45,7 +45,7 @@ GitHub runner is already configured to use Namespace Cloud build cluster.`);
});

await core.group(`Builder`, async () => {
core.info("remote-nsc");
core.info(nscRemoteBuilderName);
});

// New line to separate from groups.
Expand Down

0 comments on commit e1b1e32

Please sign in to comment.