Skip to content

Commit

Permalink
main: refactor to new nsc docker buildx command
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed May 30, 2023
1 parent b8cba8c commit bbefde4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4363,7 +4363,7 @@ function prepareBuildx() {
if (!exists) {
yield core.group(`Proxy Buildkit from Namespace Cloud`, () => __awaiter(this, void 0, void 0, function* () {
yield ensureNscloudToken();
yield exec.exec(`nsc buildkit buildx setup --name=${nscRemoteBuilderName} --background --use`);
yield exec.exec(`nsc docker buildx setup --name=${nscRemoteBuilderName} --background --use`);
}));
}
yield core.group(`Builder`, () => __awaiter(this, void 0, void 0, function* () {
Expand Down
2 changes: 1 addition & 1 deletion dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4161,7 +4161,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
yield exec.exec(`nsc buildkit buildx cleanup --name=${nscRemoteBuilderName}`);
yield exec.exec(`nsc docker buildx cleanup --name=${nscRemoteBuilderName}`);
}
catch (error) {
core.setFailed(error.message);
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function prepareBuildx(): Promise<void> {
await ensureNscloudToken();

await exec.exec(
`nsc buildkit buildx setup --name=${nscRemoteBuilderName} --background --use`
`nsc docker buildx setup --name=${nscRemoteBuilderName} --background --use`
);
});
}
Expand Down
2 changes: 1 addition & 1 deletion post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { nscRemoteBuilderName } from "./common";
async function run(): Promise<void> {
try {
await exec.exec(
`nsc buildkit buildx cleanup --name=${nscRemoteBuilderName}`
`nsc docker buildx cleanup --name=${nscRemoteBuilderName}`
);
} catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit bbefde4

Please sign in to comment.