@catladder/cli 0.0.0-main-0acdca98 → 0.0.0-main-e0262e40

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.
@@ -350148,6 +350148,7 @@ var utils_1 = __nccwpck_require__(37461);
350148
350148
  var yarn_1 = __nccwpck_require__(10464);
350149
350149
  var constants_1 = __nccwpck_require__(11542);
350150
350150
  var writeBuildInfo_1 = __nccwpck_require__(51754);
350151
+ var writeDotEnv_1 = __nccwpck_require__(71298);
350151
350152
  var createBuildJob = function (context, _a) {
350152
350153
  var _b, _c, _d, _e;
350153
350154
  var script = _a.script,
@@ -350161,7 +350162,7 @@ var createBuildJob = function (context, _a) {
350161
350162
  needs: [],
350162
350163
  cache: [],
350163
350164
  variables: __assign(__assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), context.environment.jobOnlyVars.build.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
350164
- script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
350165
+ script: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(context.componentConfig.dotEnv ? (0, writeDotEnv_1.writeDotEnv)(context) : []), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
350165
350166
  artifacts: {
350166
350167
  paths: [(0, path_1.join)(context.componentConfig.dir, "__build_info.json")],
350167
350168
  reports: {
@@ -350192,6 +350193,56 @@ exports.writeBuildInfo = writeBuildInfo;
350192
350193
 
350193
350194
  /***/ }),
350194
350195
 
350196
+ /***/ 71298:
350197
+ /***/ (function(__unused_webpack_module, exports) {
350198
+
350199
+ "use strict";
350200
+
350201
+
350202
+ var __read = this && this.__read || function (o, n) {
350203
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
350204
+ if (!m) return o;
350205
+ var i = m.call(o),
350206
+ r,
350207
+ ar = [],
350208
+ e;
350209
+ try {
350210
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
350211
+ } catch (error) {
350212
+ e = {
350213
+ error: error
350214
+ };
350215
+ } finally {
350216
+ try {
350217
+ if (r && !r.done && (m = i["return"])) m.call(i);
350218
+ } finally {
350219
+ if (e) throw e.error;
350220
+ }
350221
+ }
350222
+ return ar;
350223
+ };
350224
+ exports.__esModule = true;
350225
+ exports.writeDotEnv = void 0;
350226
+ /**
350227
+ * writes a .env file in the components folder
350228
+ * @param context
350229
+ * @returns
350230
+ */
350231
+ var writeDotEnv = function (context) {
350232
+ var envVars = context.environment.envVars;
350233
+ // make key=value and sanitize multiline
350234
+ var keyValueString = Object.entries(envVars).map(function (_a) {
350235
+ var _b = __read(_a, 2),
350236
+ key = _b[0],
350237
+ value = _b[1];
350238
+ return "".concat(key, "=").concat(value.replaceAll("\n", "\\n"));
350239
+ }).join("\n");
350240
+ return ["cat <<EOF > ".concat(context.componentConfig.dir, "/.env\n").concat(keyValueString, "\nEOF")];
350241
+ };
350242
+ exports.writeDotEnv = writeDotEnv;
350243
+
350244
+ /***/ }),
350245
+
350195
350246
  /***/ 62644:
350196
350247
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350197
350248
 
@@ -351612,7 +351663,7 @@ exports.readConfigSync = readConfigSync;
351612
351663
 
351613
351664
  exports.__esModule = true;
351614
351665
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351615
- exports.PIPELINE_IMAGE_TAG = "main-0acdca98" || 0;
351666
+ exports.PIPELINE_IMAGE_TAG = "main-e0262e40" || 0;
351616
351667
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351617
351668
 
351618
351669
  /***/ }),