viza 1.8.1 → 1.8.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.
|
@@ -10,10 +10,10 @@ export function registerGithubSecretsRestoreCommand(program) {
|
|
|
10
10
|
.description("Restore GitHub secrets and environment variables to AWS SSM")
|
|
11
11
|
.option("--prod", "Use production environment")
|
|
12
12
|
.option("--dev", "Use development environment")
|
|
13
|
-
.option("--
|
|
14
|
-
.option("--
|
|
15
|
-
.option("--
|
|
16
|
-
.option("--
|
|
13
|
+
.option("--core", "Restore configuration for Modo-Core/core-actions")
|
|
14
|
+
.option("--infra", "Restore configuration for Modo-Infra hub repositories")
|
|
15
|
+
.option("--builder", "Restore configuration for build/publish app repositories")
|
|
16
|
+
.option("--deployer", "Restore configuration for deployer repositories (Modo-Front / Modo-Back)")
|
|
17
17
|
.action(async (_opts, command) => {
|
|
18
18
|
const fullOpts = getResolvedOptions(command);
|
|
19
19
|
await restoreGithubSecretsCommand(fullOpts);
|
|
@@ -39,16 +39,16 @@ export async function restoreGithubSecretsCommand(options) {
|
|
|
39
39
|
...TARGET_TEAMS.prod,
|
|
40
40
|
]))
|
|
41
41
|
: TARGET_TEAMS[env];
|
|
42
|
-
// Resolve restore
|
|
42
|
+
// Resolve domain restore flags (forward to hub)
|
|
43
43
|
const payload = {};
|
|
44
|
-
if (options.
|
|
45
|
-
payload.
|
|
46
|
-
if (options.
|
|
47
|
-
payload.
|
|
48
|
-
if (options.
|
|
49
|
-
payload.
|
|
50
|
-
if (options.
|
|
51
|
-
payload.
|
|
44
|
+
if (options.core)
|
|
45
|
+
payload.core = true;
|
|
46
|
+
if (options.infra)
|
|
47
|
+
payload.infra = true;
|
|
48
|
+
if (options.builder)
|
|
49
|
+
payload.builder = true;
|
|
50
|
+
if (options.deployer)
|
|
51
|
+
payload.deployer = true;
|
|
52
52
|
// 5) Dispatch intent (freeze)
|
|
53
53
|
await dispatchIntentAndWait({
|
|
54
54
|
intent,
|