@catladder/cli 3.2.0 → 3.3.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/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "3.2.0",
56
+ "version": "3.3.0",
57
57
  "scripts": {
58
58
  "lint": "eslint \"src/**/*.ts\"",
59
59
  "lint:fix": "eslint \"src/**/*.ts\" --fix",
@@ -1,6 +1,5 @@
1
1
  import type { CommandInstance } from "vorpal";
2
2
  import { getAllPipelineContexts } from "../../../../../config/getProjectConfig";
3
- import { projectConfigSecrets } from "../commandConfigSecrets";
4
3
  import { setupAccessTokens } from "./setupAccessTokens";
5
4
  import { setupContext } from "./setupContext";
6
5
  import { setupTopic } from "./setupTopic";
@@ -13,21 +12,7 @@ export const setupProject = async (instance: CommandInstance) => {
13
12
  }
14
13
  await setupAccessTokens(instance);
15
14
  await setupTopic(instance);
16
- instance.log("");
17
- const { configSecrets } = await instance.prompt({
18
- default: true,
19
- message: "Before deployments work, you need to config secrets. Do it now?",
20
- name: "configSecrets",
21
- type: "confirm",
22
- });
23
- instance.log("");
24
- if (configSecrets) {
25
- await projectConfigSecrets(instance);
26
- } else {
27
- instance.log(
28
- "👆 don't forget to config secret using `project-config-secrets`",
29
- );
30
- }
15
+
31
16
  instance.log("");
32
17
  instance.log("gitlab is ready! 🥂");
33
18
  instance.log("\n");
@@ -69,7 +69,7 @@ const upsertGcloudServiceAccount = async (
69
69
  const memberName = `serviceAccount:${fullIdentifier}`;
70
70
  for (const role of roles) {
71
71
  await exec(
72
- `gcloud projects add-iam-policy-binding ${projectId} --member=${memberName} --role=${role} `,
72
+ `gcloud projects add-iam-policy-binding ${projectId} --member=${memberName} --role=${role} --condition=None`,
73
73
  );
74
74
  }
75
75