@cloudbase/cli 2.2.0-alpha.0 → 2.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/lowcode/app.js +11 -2
- package/package.json +2 -2
|
@@ -164,15 +164,24 @@ let LowCodeDeployApp = class LowCodeDeployApp extends common_1.Command {
|
|
|
164
164
|
execute(ctx, log, options) {
|
|
165
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
166
166
|
const { src } = options, restOptions = __rest(options, ["src"]);
|
|
167
|
+
let credential;
|
|
168
|
+
const privateSettings = lodash_1.default.get(ctx, 'config.privateSettings');
|
|
167
169
|
if (ctx.hasPrivateSettings) {
|
|
168
170
|
process.env.IS_PRIVATE = 'true';
|
|
171
|
+
credential = {
|
|
172
|
+
secretId: privateSettings === null || privateSettings === void 0 ? void 0 : privateSettings.secretID,
|
|
173
|
+
secretKey: privateSettings === null || privateSettings === void 0 ? void 0 : privateSettings.secretKey
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
credential = yield utils_2.authSupevisor.getLoginState();
|
|
169
178
|
}
|
|
170
179
|
yield lowcodeCli.deployApp({
|
|
171
|
-
envId: ctx.envId,
|
|
180
|
+
envId: ctx.envId || ctx.config.envId,
|
|
172
181
|
projectPath: process.cwd(),
|
|
173
182
|
logger: log,
|
|
174
183
|
privateSettings: lodash_1.default.get(ctx, 'config.privateSettings')
|
|
175
|
-
}, Object.assign(Object.assign({ credential
|
|
184
|
+
}, Object.assign(Object.assign({ credential, webOptions: {
|
|
176
185
|
endpoint: 'http://oss-csp1.rgw.infra.tce.io',
|
|
177
186
|
bucket: 'weda-system-ci-source',
|
|
178
187
|
credential: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.2",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
34
|
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
-
"@cloudbase/lowcode-cli": "0.17.0-alpha.
|
|
35
|
+
"@cloudbase/lowcode-cli": "0.17.0-alpha.2",
|
|
36
36
|
"@cloudbase/manager-node": "4.0.1",
|
|
37
37
|
"@cloudbase/toolbox": "^0.7.3",
|
|
38
38
|
"@sentry/node": "^5.10.2",
|