@catladder/cli 1.48.1 → 1.49.0
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/dist/apps/cli/commands/project/setup/setupCloudRun.js +7 -0
- package/dist/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -1
- package/dist/bundles/catenv/index.js +1 -1
- package/dist/bundles/cli/index.js +4 -4
- package/dist/cli.js +0 -5
- package/dist/cli.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -4
- package/src/apps/cli/commands/project/setup/setupCloudRun.ts +5 -2
- package/src/cli.ts +0 -5
- package/dist/bundles/cli/check.js +0 -28
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": ">=12.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@catladder/pipeline": "1.
|
|
27
|
+
"@catladder/pipeline": "1.49.0",
|
|
28
28
|
"@kubernetes/client-node": "^0.16.2",
|
|
29
29
|
"@tsconfig/node14": "^1.0.1",
|
|
30
30
|
"@types/common-tags": "^1.8.0",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"eslint": "^8.7.0",
|
|
48
48
|
"fs-extra": "^7.0.1",
|
|
49
49
|
"gitlab": "^4.4.1",
|
|
50
|
-
"is-ci": "^3.0.1",
|
|
51
50
|
"js-yaml": "^4.1.0",
|
|
52
51
|
"lodash": "^4.17.21",
|
|
53
52
|
"memoizee": "^0.4.14",
|
|
@@ -56,8 +55,7 @@
|
|
|
56
55
|
"prettier": "^2.5.1",
|
|
57
56
|
"tmp-promise": "^2.0.2",
|
|
58
57
|
"typescript": "^4.5.4",
|
|
59
|
-
"update-notifier": "^5",
|
|
60
58
|
"vorpal": "^1.12.0"
|
|
61
59
|
},
|
|
62
|
-
"version": "1.
|
|
60
|
+
"version": "1.49.0"
|
|
63
61
|
}
|
|
@@ -29,9 +29,10 @@ export const setupCloudRun = async (
|
|
|
29
29
|
["run.googleapis.com", "artifactregistry.googleapis.com"],
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
instance.log("upsert artifacts registry...");
|
|
33
33
|
await upsertGcloudArtifactsRegistry(config);
|
|
34
34
|
|
|
35
|
+
instance.log("upsert deploy service account...");
|
|
35
36
|
await upsertGcloudServiceAccountAndSaveSecret(
|
|
36
37
|
instance,
|
|
37
38
|
context,
|
|
@@ -54,7 +55,9 @@ export const setupCloudRun = async (
|
|
|
54
55
|
// but the pipeline need to know it before deployment
|
|
55
56
|
// so we get this through some magic and add this as a ci/cd variable
|
|
56
57
|
// the pipeline than can use this to construct the canonical host
|
|
57
|
-
|
|
58
|
+
instance.log(
|
|
59
|
+
"get service domain suffix... that might take a while initially"
|
|
60
|
+
);
|
|
58
61
|
const suffix = await getCloudRunDomainSuffix(config);
|
|
59
62
|
instance.log("domain suffix: " + suffix);
|
|
60
63
|
|
package/src/cli.ts
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unicorn/no-process-exit */
|
|
2
|
-
'use strict';
|
|
3
|
-
let updateNotifier = require('.');
|
|
4
|
-
|
|
5
|
-
const options = JSON.parse(process.argv[2]);
|
|
6
|
-
|
|
7
|
-
updateNotifier = new updateNotifier.UpdateNotifier(options);
|
|
8
|
-
|
|
9
|
-
(async () => {
|
|
10
|
-
// Exit process when offline
|
|
11
|
-
setTimeout(process.exit, 1000 * 30);
|
|
12
|
-
|
|
13
|
-
const update = await updateNotifier.fetchInfo();
|
|
14
|
-
|
|
15
|
-
// Only update the last update check time on success
|
|
16
|
-
updateNotifier.config.set('lastUpdateCheck', Date.now());
|
|
17
|
-
|
|
18
|
-
if (update.type && update.type !== 'latest') {
|
|
19
|
-
updateNotifier.config.set('update', update);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Call process exit explicitly to terminate the child process,
|
|
23
|
-
// otherwise the child process will run forever, according to the Node.js docs
|
|
24
|
-
process.exit();
|
|
25
|
-
})().catch(error => {
|
|
26
|
-
console.error(error);
|
|
27
|
-
process.exit(1);
|
|
28
|
-
});
|