@catladder/cli 1.161.0 → 1.161.1
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/bundles/catenv/index.js +1 -1
- package/dist/bundles/cli/index.js +1 -1
- package/dist/cli/src/config/getProjectConfig.js +21 -40
- package/dist/cli/src/config/getProjectConfig.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/config/getProjectConfig.ts +16 -17
package/package.json
CHANGED
|
@@ -123,23 +123,22 @@ const resolveSecrets = async (
|
|
|
123
123
|
const allVariablesInGitlab = await getAllVariables(vorpal);
|
|
124
124
|
|
|
125
125
|
return Object.fromEntries(
|
|
126
|
-
varSets.flatMap((
|
|
127
|
-
Object.entries(
|
|
128
|
-
.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
.replace(new RegExp("\\$" +
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
.filter(Boolean),
|
|
126
|
+
varSets.flatMap(({ envVars, secretEnvVarKeys }) =>
|
|
127
|
+
Object.entries(envVars)
|
|
128
|
+
.filter(
|
|
129
|
+
([key, value]) =>
|
|
130
|
+
value !== undefined &&
|
|
131
|
+
value !== null &&
|
|
132
|
+
!secretEnvVarKeys.find((k) => k.key === key)?.hidden,
|
|
133
|
+
)
|
|
134
|
+
.map(([key, value]) => [
|
|
135
|
+
key,
|
|
136
|
+
allVariablesInGitlab.reduce(
|
|
137
|
+
(acc, curr) =>
|
|
138
|
+
acc.replace(new RegExp("\\$" + curr.key, "g"), curr.value),
|
|
139
|
+
`${value}`,
|
|
140
|
+
),
|
|
141
|
+
]),
|
|
143
142
|
),
|
|
144
143
|
);
|
|
145
144
|
};
|