Skip to content

Commit

Permalink
main: use new docker login command
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed May 30, 2023
1 parent 569cdd3 commit 9762890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6858,7 +6858,7 @@ function ensureNscloudToken() {
function dockerLogin() {
return __awaiter(this, void 0, void 0, function* () {
const out = tmpFile("registry.txt");
yield _actions_exec__WEBPACK_IMPORTED_MODULE_2__.exec(`nsc cluster docker-login --output_registry_to=${out} --log_actions=false`);
yield _actions_exec__WEBPACK_IMPORTED_MODULE_2__.exec(`nsc docker login --output_registry_to=${out} --log_actions=false`);
return fs__WEBPACK_IMPORTED_MODULE_3__.readFileSync(out, "utf8");
});
}
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function ensureNscloudToken() {

async function dockerLogin() {
const out = tmpFile("registry.txt");
await exec.exec(`nsc cluster docker-login --output_registry_to=${out} --log_actions=false`);
await exec.exec(`nsc docker login --output_registry_to=${out} --log_actions=false`);

return fs.readFileSync(out, "utf8");
}
Expand Down

0 comments on commit 9762890

Please sign in to comment.