@catladder/cli 0.0.0-main-3d4451d7 → 0.0.0-main-b1ed301d
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/index.js +11 -7
- package/dist/apps/cli/commands/project/setup/index.js.map +1 -1
- package/dist/apps/cli/commands/project/setup/setupTopic.d.ts +2 -0
- package/dist/apps/cli/commands/project/setup/setupTopic.js +69 -0
- package/dist/apps/cli/commands/project/setup/setupTopic.js.map +1 -0
- package/dist/bundles/catenv/index.js +5 -5
- package/dist/bundles/cli/index.js +92 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/apps/cli/commands/project/setup/index.ts +2 -0
- package/src/apps/cli/commands/project/setup/setupTopic.ts +22 -0
|
@@ -41,6 +41,7 @@ var getProjectConfig_1 = require("../../../../../config/getProjectConfig");
|
|
|
41
41
|
var commandConfigSecrets_1 = require("../commandConfigSecrets");
|
|
42
42
|
var setupAccessTokens_1 = require("./setupAccessTokens");
|
|
43
43
|
var setupContext_1 = require("./setupContext");
|
|
44
|
+
var setupTopic_1 = require("./setupTopic");
|
|
44
45
|
var setupProject = function (instance) { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
46
|
var allContext, _i, allContext_1, context, configSecrets;
|
|
46
47
|
return __generator(this, function (_a) {
|
|
@@ -62,6 +63,9 @@ var setupProject = function (instance) { return __awaiter(void 0, void 0, void 0
|
|
|
62
63
|
return [3 /*break*/, 2];
|
|
63
64
|
case 5: return [4 /*yield*/, (0, setupAccessTokens_1.setupAccessTokens)(instance)];
|
|
64
65
|
case 6:
|
|
66
|
+
_a.sent();
|
|
67
|
+
return [4 /*yield*/, (0, setupTopic_1.setupTopic)(instance)];
|
|
68
|
+
case 7:
|
|
65
69
|
_a.sent();
|
|
66
70
|
instance.log("");
|
|
67
71
|
return [4 /*yield*/, instance.prompt({
|
|
@@ -70,18 +74,18 @@ var setupProject = function (instance) { return __awaiter(void 0, void 0, void 0
|
|
|
70
74
|
name: "configSecrets",
|
|
71
75
|
type: "confirm"
|
|
72
76
|
})];
|
|
73
|
-
case
|
|
77
|
+
case 8:
|
|
74
78
|
configSecrets = (_a.sent()).configSecrets;
|
|
75
79
|
instance.log("");
|
|
76
|
-
if (!configSecrets) return [3 /*break*/,
|
|
80
|
+
if (!configSecrets) return [3 /*break*/, 10];
|
|
77
81
|
return [4 /*yield*/, (0, commandConfigSecrets_1.projectConfigSecrets)(instance)];
|
|
78
|
-
case 8:
|
|
79
|
-
_a.sent();
|
|
80
|
-
return [3 /*break*/, 10];
|
|
81
82
|
case 9:
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
_a.sent();
|
|
84
|
+
return [3 /*break*/, 11];
|
|
84
85
|
case 10:
|
|
86
|
+
instance.log("👆 don't forget to config secret using `project-config-secrets`");
|
|
87
|
+
_a.label = 11;
|
|
88
|
+
case 11:
|
|
85
89
|
instance.log("");
|
|
86
90
|
instance.log("gitlab is ready! 🥂");
|
|
87
91
|
instance.log("\n");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/apps/cli/commands/project/setup/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2EAAgF;AAChF,gEAA+D;AAC/D,yDAAwD;AACxD,+CAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/apps/cli/commands/project/setup/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2EAAgF;AAChF,gEAA+D;AAC/D,yDAAwD;AACxD,+CAA8C;AAC9C,2CAA0C;AAEnC,IAAM,YAAY,GAAG,UAAO,QAAyB;;;;oBACvC,qBAAM,IAAA,yCAAsB,GAAE,EAAA;;gBAA3C,UAAU,GAAG,SAA8B;sBAEjB,EAAV,yBAAU;;;qBAAV,CAAA,wBAAU,CAAA;gBAArB,OAAO;gBAChB,qBAAM,IAAA,2BAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAA;;gBAArC,SAAqC,CAAC;;;gBADlB,IAAU,CAAA;;oBAGhC,qBAAM,IAAA,qCAAiB,EAAC,QAAQ,CAAC,EAAA;;gBAAjC,SAAiC,CAAC;gBAClC,qBAAM,IAAA,uBAAU,EAAC,QAAQ,CAAC,EAAA;;gBAA1B,SAA0B,CAAC;gBAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACS,qBAAM,QAAQ,CAAC,MAAM,CAAC;wBAC9C,SAAO,EAAE,IAAI;wBACb,OAAO,EAAE,iEAAiE;wBAC1E,IAAI,EAAE,eAAe;wBACrB,IAAI,EAAE,SAAS;qBAChB,CAAC,EAAA;;gBALM,aAAa,GAAK,CAAA,SAKxB,CAAA,cALmB;gBAMrB,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;qBACb,aAAa,EAAb,yBAAa;gBACf,qBAAM,IAAA,2CAAoB,EAAC,QAAQ,CAAC,EAAA;;gBAApC,SAAoC,CAAC;;;gBAErC,QAAQ,CAAC,GAAG,CACV,iEAAiE,CAClE,CAAC;;;gBAEJ,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACjB,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;gBACpC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACnB,QAAQ,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;gBACjD;oBACE,kCAAkC;oBAClC,2BAA2B;oBAC3B,qDAAqD;oBACrD,qBAAqB;oBACrB,eAAe;iBAChB,CAAC,OAAO,CAAC,UAAC,GAAG,IAAK,OAAA,QAAQ,CAAC,GAAG,CAAC,aAAM,GAAG,CAAE,CAAC,EAAzB,CAAyB,CAAC,CAAC;gBAC9C,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACnB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;;;;KACpB,CAAC;AApCW,QAAA,YAAY,gBAoCvB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
39
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
40
|
+
if (ar || !(i in from)) {
|
|
41
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
42
|
+
ar[i] = from[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
|
+
};
|
|
47
|
+
exports.__esModule = true;
|
|
48
|
+
exports.setupTopic = void 0;
|
|
49
|
+
var gitlab_1 = require("../../../../../utils/gitlab");
|
|
50
|
+
var catladderTopic = "catladder";
|
|
51
|
+
var setupTopic = function (instance) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
+
var projectId, topics;
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
switch (_a.label) {
|
|
55
|
+
case 0: return [4 /*yield*/, (0, gitlab_1.getProjectInfo)(instance)];
|
|
56
|
+
case 1:
|
|
57
|
+
projectId = (_a.sent()).id;
|
|
58
|
+
return [4 /*yield*/, (0, gitlab_1.doGitlabRequest)(instance, "projects/".concat(projectId))];
|
|
59
|
+
case 2:
|
|
60
|
+
topics = (_a.sent()).topics;
|
|
61
|
+
return [4 /*yield*/, (0, gitlab_1.doGitlabRequest)(instance, "projects/".concat(projectId), { topics: __spreadArray([catladderTopic], topics, true) }, "PUT")];
|
|
62
|
+
case 3:
|
|
63
|
+
_a.sent();
|
|
64
|
+
return [2 /*return*/];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}); };
|
|
68
|
+
exports.setupTopic = setupTopic;
|
|
69
|
+
//# sourceMappingURL=setupTopic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupTopic.js","sourceRoot":"","sources":["../../../../../../src/apps/cli/commands/project/setup/setupTopic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAA8E;AAE9E,IAAM,cAAc,GAAG,WAAW,CAAA;AAE3B,IAAM,UAAU,GAAG,UAAO,QAAyB;;;;oBAC9B,qBAAM,IAAA,uBAAc,EAC5C,QAAQ,CACT,EAAA;;gBAFW,SAAS,GAAK,CAAA,SAEzB,CAAA,GAFoB;gBAIF,qBAAM,IAAA,wBAAe,EACtC,QAAQ,EACR,mBAAY,SAAS,CAAE,CACxB,EAAA;;gBAHO,MAAM,GAAK,CAAA,SAGlB,CAAA,OAHa;gBAKd,qBAAM,IAAA,wBAAe,EACnB,QAAQ,EACR,mBAAY,SAAS,CAAE,EACvB,EAAE,MAAM,iBAAG,cAAc,GAAK,MAAM,OAAC,EAAE,EACvC,KAAK,CACN,EAAA;;gBALD,SAKC,CAAC;;;;KACH,CAAC;AAhBW,QAAA,UAAU,cAgBrB"}
|
|
@@ -40105,7 +40105,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40105
40105
|
|
|
40106
40106
|
exports.__esModule = true;
|
|
40107
40107
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40108
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40108
|
+
exports.PIPELINE_IMAGE_TAG = "main-b1ed301d" || 0;
|
|
40109
40109
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40110
40110
|
|
|
40111
40111
|
/***/ }),
|
|
@@ -42081,7 +42081,7 @@ var base_1 = __nccwpck_require__(9177);
|
|
|
42081
42081
|
var types_1 = __nccwpck_require__(3109);
|
|
42082
42082
|
var kubeValues_1 = __nccwpck_require__(1061);
|
|
42083
42083
|
var createKubernetesDeployJobs = function (context) {
|
|
42084
|
-
var _a, _b;
|
|
42084
|
+
var _a, _b, _c;
|
|
42085
42085
|
var deployConfig = context.componentConfig.deploy;
|
|
42086
42086
|
if (deployConfig === false) {
|
|
42087
42087
|
return [];
|
|
@@ -42105,10 +42105,10 @@ var createKubernetesDeployJobs = function (context) {
|
|
|
42105
42105
|
quotingType: "'",
|
|
42106
42106
|
forceQuotes: true
|
|
42107
42107
|
}),
|
|
42108
|
-
HELM_GITLAB_CHART_NAME: "the-panter-chart",
|
|
42109
|
-
HELM_ARGS: __spreadArray(__spreadArray([], __read(deployConfig.debug ? ["--debug"] : []), false), __read((
|
|
42108
|
+
HELM_GITLAB_CHART_NAME: (_a = deployConfig.chartName) !== null && _a !== void 0 ? _a : "/helm-charts/the-panter-chart",
|
|
42109
|
+
HELM_ARGS: __spreadArray(__spreadArray([], __read(deployConfig.debug ? ["--debug"] : []), false), __read((_b = deployConfig.additionalHelmArgs) !== null && _b !== void 0 ? _b : []), false).join(" "),
|
|
42110
42110
|
COMPONENT_NAME: context.componentName,
|
|
42111
|
-
BUILD_ID: (
|
|
42111
|
+
BUILD_ID: (_c = context.commitInfo) === null || _c === void 0 ? void 0 : _c.buildId
|
|
42112
42112
|
})
|
|
42113
42113
|
};
|
|
42114
42114
|
var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
|
|
@@ -4225,6 +4225,7 @@ var getProjectConfig_1 = __nccwpck_require__(24146);
|
|
|
4225
4225
|
var commandConfigSecrets_1 = __nccwpck_require__(80883);
|
|
4226
4226
|
var setupAccessTokens_1 = __nccwpck_require__(64270);
|
|
4227
4227
|
var setupContext_1 = __nccwpck_require__(40663);
|
|
4228
|
+
var setupTopic_1 = __nccwpck_require__(21082);
|
|
4228
4229
|
var setupProject = function (instance) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4229
4230
|
var allContext, _i, allContext_1, context, configSecrets;
|
|
4230
4231
|
return __generator(this, function (_a) {
|
|
@@ -4246,6 +4247,9 @@ var setupProject = function (instance) { return __awaiter(void 0, void 0, void 0
|
|
|
4246
4247
|
return [3 /*break*/, 2];
|
|
4247
4248
|
case 5: return [4 /*yield*/, (0, setupAccessTokens_1.setupAccessTokens)(instance)];
|
|
4248
4249
|
case 6:
|
|
4250
|
+
_a.sent();
|
|
4251
|
+
return [4 /*yield*/, (0, setupTopic_1.setupTopic)(instance)];
|
|
4252
|
+
case 7:
|
|
4249
4253
|
_a.sent();
|
|
4250
4254
|
instance.log("");
|
|
4251
4255
|
return [4 /*yield*/, instance.prompt({
|
|
@@ -4254,18 +4258,18 @@ var setupProject = function (instance) { return __awaiter(void 0, void 0, void 0
|
|
|
4254
4258
|
name: "configSecrets",
|
|
4255
4259
|
type: "confirm"
|
|
4256
4260
|
})];
|
|
4257
|
-
case
|
|
4261
|
+
case 8:
|
|
4258
4262
|
configSecrets = (_a.sent()).configSecrets;
|
|
4259
4263
|
instance.log("");
|
|
4260
|
-
if (!configSecrets) return [3 /*break*/,
|
|
4264
|
+
if (!configSecrets) return [3 /*break*/, 10];
|
|
4261
4265
|
return [4 /*yield*/, (0, commandConfigSecrets_1.projectConfigSecrets)(instance)];
|
|
4262
|
-
case 8:
|
|
4263
|
-
_a.sent();
|
|
4264
|
-
return [3 /*break*/, 10];
|
|
4265
4266
|
case 9:
|
|
4266
|
-
|
|
4267
|
-
|
|
4267
|
+
_a.sent();
|
|
4268
|
+
return [3 /*break*/, 11];
|
|
4268
4269
|
case 10:
|
|
4270
|
+
instance.log("👆 don't forget to config secret using `project-config-secrets`");
|
|
4271
|
+
_a.label = 11;
|
|
4272
|
+
case 11:
|
|
4269
4273
|
instance.log("");
|
|
4270
4274
|
instance.log("gitlab is ready! 🥂");
|
|
4271
4275
|
instance.log("\n");
|
|
@@ -4829,6 +4833,82 @@ exports.setupKubernetes = setupKubernetes;
|
|
|
4829
4833
|
|
|
4830
4834
|
/***/ }),
|
|
4831
4835
|
|
|
4836
|
+
/***/ 21082:
|
|
4837
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
4838
|
+
|
|
4839
|
+
"use strict";
|
|
4840
|
+
|
|
4841
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4842
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4843
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4844
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4845
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4846
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4847
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4848
|
+
});
|
|
4849
|
+
};
|
|
4850
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
4851
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4852
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4853
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4854
|
+
function step(op) {
|
|
4855
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
4856
|
+
while (_) try {
|
|
4857
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
4858
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
4859
|
+
switch (op[0]) {
|
|
4860
|
+
case 0: case 1: t = op; break;
|
|
4861
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
4862
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
4863
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
4864
|
+
default:
|
|
4865
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
4866
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
4867
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
4868
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
4869
|
+
if (t[2]) _.ops.pop();
|
|
4870
|
+
_.trys.pop(); continue;
|
|
4871
|
+
}
|
|
4872
|
+
op = body.call(thisArg, _);
|
|
4873
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
4874
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
4875
|
+
}
|
|
4876
|
+
};
|
|
4877
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
4878
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4879
|
+
if (ar || !(i in from)) {
|
|
4880
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
4881
|
+
ar[i] = from[i];
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
4885
|
+
};
|
|
4886
|
+
exports.__esModule = true;
|
|
4887
|
+
exports.setupTopic = void 0;
|
|
4888
|
+
var gitlab_1 = __nccwpck_require__(79818);
|
|
4889
|
+
var catladderTopic = "catladder";
|
|
4890
|
+
var setupTopic = function (instance) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4891
|
+
var projectId, topics;
|
|
4892
|
+
return __generator(this, function (_a) {
|
|
4893
|
+
switch (_a.label) {
|
|
4894
|
+
case 0: return [4 /*yield*/, (0, gitlab_1.getProjectInfo)(instance)];
|
|
4895
|
+
case 1:
|
|
4896
|
+
projectId = (_a.sent()).id;
|
|
4897
|
+
return [4 /*yield*/, (0, gitlab_1.doGitlabRequest)(instance, "projects/".concat(projectId))];
|
|
4898
|
+
case 2:
|
|
4899
|
+
topics = (_a.sent()).topics;
|
|
4900
|
+
return [4 /*yield*/, (0, gitlab_1.doGitlabRequest)(instance, "projects/".concat(projectId), { topics: __spreadArray([catladderTopic], topics, true) }, "PUT")];
|
|
4901
|
+
case 3:
|
|
4902
|
+
_a.sent();
|
|
4903
|
+
return [2 /*return*/];
|
|
4904
|
+
}
|
|
4905
|
+
});
|
|
4906
|
+
}); };
|
|
4907
|
+
exports.setupTopic = setupTopic;
|
|
4908
|
+
//# sourceMappingURL=setupTopic.js.map
|
|
4909
|
+
|
|
4910
|
+
/***/ }),
|
|
4911
|
+
|
|
4832
4912
|
/***/ 41373:
|
|
4833
4913
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
4834
4914
|
|
|
@@ -351357,7 +351437,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
351357
351437
|
|
|
351358
351438
|
exports.__esModule = true;
|
|
351359
351439
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
351360
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
351440
|
+
exports.PIPELINE_IMAGE_TAG = "main-b1ed301d" || 0;
|
|
351361
351441
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
351362
351442
|
|
|
351363
351443
|
/***/ }),
|
|
@@ -353333,7 +353413,7 @@ var base_1 = __nccwpck_require__(89177);
|
|
|
353333
353413
|
var types_1 = __nccwpck_require__(63109);
|
|
353334
353414
|
var kubeValues_1 = __nccwpck_require__(1061);
|
|
353335
353415
|
var createKubernetesDeployJobs = function (context) {
|
|
353336
|
-
var _a, _b;
|
|
353416
|
+
var _a, _b, _c;
|
|
353337
353417
|
var deployConfig = context.componentConfig.deploy;
|
|
353338
353418
|
if (deployConfig === false) {
|
|
353339
353419
|
return [];
|
|
@@ -353357,10 +353437,10 @@ var createKubernetesDeployJobs = function (context) {
|
|
|
353357
353437
|
quotingType: "'",
|
|
353358
353438
|
forceQuotes: true
|
|
353359
353439
|
}),
|
|
353360
|
-
HELM_GITLAB_CHART_NAME: "the-panter-chart",
|
|
353361
|
-
HELM_ARGS: __spreadArray(__spreadArray([], __read(deployConfig.debug ? ["--debug"] : []), false), __read((
|
|
353440
|
+
HELM_GITLAB_CHART_NAME: (_a = deployConfig.chartName) !== null && _a !== void 0 ? _a : "/helm-charts/the-panter-chart",
|
|
353441
|
+
HELM_ARGS: __spreadArray(__spreadArray([], __read(deployConfig.debug ? ["--debug"] : []), false), __read((_b = deployConfig.additionalHelmArgs) !== null && _b !== void 0 ? _b : []), false).join(" "),
|
|
353362
353442
|
COMPONENT_NAME: context.componentName,
|
|
353363
|
-
BUILD_ID: (
|
|
353443
|
+
BUILD_ID: (_c = context.commitInfo) === null || _c === void 0 ? void 0 : _c.buildId
|
|
353364
353444
|
})
|
|
353365
353445
|
};
|
|
353366
353446
|
var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
|