@catladder/cli 0.0.0-main-0eb13d37 → 0.0.0-main-04ed14d8
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.
|
@@ -40865,7 +40865,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40865
40865
|
|
|
40866
40866
|
exports.__esModule = true;
|
|
40867
40867
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40868
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40868
|
+
exports.PIPELINE_IMAGE_TAG = "main-04ed14d8" || 0;
|
|
40869
40869
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40870
40870
|
|
|
40871
40871
|
/***/ }),
|
|
@@ -42471,7 +42471,7 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
42471
42471
|
var dockerUrl = "".concat(deployConfig.region, "-docker.pkg.dev/").concat(deployConfig.projectId, "/catladder-deploy/").concat(fullAppName);
|
|
42472
42472
|
var gcloudImagePath = __spreadArray([dockerUrl, context.environment.shortName, context.componentName], __read(context.environment.envType === "review" ? [(_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.reviewSlug] : []), false);
|
|
42473
42473
|
var gcloudImageName = "".concat(gcloudImagePath.join("/"), ":$DOCKER_IMAGE_TAG");
|
|
42474
|
-
var pushImageToArtifactsRegistry = [docker_1.gitlabDockerLogin, "gcloud auth configure-docker ".concat(deployConfig.region, "-docker.pkg.dev"), "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG ".concat(gcloudImageName), "docker push ".concat(gcloudImageName)];
|
|
42474
|
+
var pushImageToArtifactsRegistry = (0, gitlab_1.collapseableSection)("pushToArtifactRegistry", "pushing image to artifacts registry")([docker_1.gitlabDockerLogin, "gcloud auth configure-docker ".concat(deployConfig.region, "-docker.pkg.dev"), "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG ".concat(gcloudImageName), "docker push ".concat(gcloudImageName)]);
|
|
42475
42475
|
var allEnvVars = (0, lodash_1.omit)(context.environment.envVars, _1.GCLOUD_DEPLOY_CREDENTIALS_KEY);
|
|
42476
42476
|
var labelsString = Object.entries((0, getLabels_1.getLabels)(context)).map(function (_a) {
|
|
42477
42477
|
var _b = __read(_a, 2),
|
|
@@ -45828,7 +45828,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
45828
45828
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
45829
45829
|
};
|
|
45830
45830
|
exports.__esModule = true;
|
|
45831
|
-
exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
45831
|
+
exports.collapseableSection = exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
45832
45832
|
var allowFailureInScripts = function (script) {
|
|
45833
45833
|
return __spreadArray(__spreadArray(["set +e"], __read(script), false), ["set -e" // reenable
|
|
45834
45834
|
], false);
|
|
@@ -45842,6 +45842,12 @@ var repeatOnFailure = function (command, options) {
|
|
|
45842
45842
|
return "\n until ".concat(command, "\n do\n echo \"Trying again.\"\n sleep ").concat(options.pauseInSeconds, "\n done\n ");
|
|
45843
45843
|
};
|
|
45844
45844
|
exports.repeatOnFailure = repeatOnFailure;
|
|
45845
|
+
var collapseableSection = function (name, header) {
|
|
45846
|
+
return function (commands) {
|
|
45847
|
+
return __spreadArray(__spreadArray(["echo -e \"\\e[0Ksection_start:$(date +%s):".concat(name, "[collapsed=true]\\r\\e[0K").concat(header, "\"")], __read(commands), false), ["echo -e \"\\e[0Ksection_end:$(date +%s):".concat(name, "\\r\\e[0K\"")], false);
|
|
45848
|
+
};
|
|
45849
|
+
};
|
|
45850
|
+
exports.collapseableSection = collapseableSection;
|
|
45845
45851
|
|
|
45846
45852
|
/***/ }),
|
|
45847
45853
|
|
|
@@ -354984,7 +354984,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
354984
354984
|
|
|
354985
354985
|
exports.__esModule = true;
|
|
354986
354986
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
354987
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
354987
|
+
exports.PIPELINE_IMAGE_TAG = "main-04ed14d8" || 0;
|
|
354988
354988
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
354989
354989
|
|
|
354990
354990
|
/***/ }),
|
|
@@ -356590,7 +356590,7 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
356590
356590
|
var dockerUrl = "".concat(deployConfig.region, "-docker.pkg.dev/").concat(deployConfig.projectId, "/catladder-deploy/").concat(fullAppName);
|
|
356591
356591
|
var gcloudImagePath = __spreadArray([dockerUrl, context.environment.shortName, context.componentName], __read(context.environment.envType === "review" ? [(_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.reviewSlug] : []), false);
|
|
356592
356592
|
var gcloudImageName = "".concat(gcloudImagePath.join("/"), ":$DOCKER_IMAGE_TAG");
|
|
356593
|
-
var pushImageToArtifactsRegistry = [docker_1.gitlabDockerLogin, "gcloud auth configure-docker ".concat(deployConfig.region, "-docker.pkg.dev"), "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG ".concat(gcloudImageName), "docker push ".concat(gcloudImageName)];
|
|
356593
|
+
var pushImageToArtifactsRegistry = (0, gitlab_1.collapseableSection)("pushToArtifactRegistry", "pushing image to artifacts registry")([docker_1.gitlabDockerLogin, "gcloud auth configure-docker ".concat(deployConfig.region, "-docker.pkg.dev"), "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG ".concat(gcloudImageName), "docker push ".concat(gcloudImageName)]);
|
|
356594
356594
|
var allEnvVars = (0, lodash_1.omit)(context.environment.envVars, _1.GCLOUD_DEPLOY_CREDENTIALS_KEY);
|
|
356595
356595
|
var labelsString = Object.entries((0, getLabels_1.getLabels)(context)).map(function (_a) {
|
|
356596
356596
|
var _b = __read(_a, 2),
|
|
@@ -359947,7 +359947,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
359947
359947
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
359948
359948
|
};
|
|
359949
359949
|
exports.__esModule = true;
|
|
359950
|
-
exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
359950
|
+
exports.collapseableSection = exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
359951
359951
|
var allowFailureInScripts = function (script) {
|
|
359952
359952
|
return __spreadArray(__spreadArray(["set +e"], __read(script), false), ["set -e" // reenable
|
|
359953
359953
|
], false);
|
|
@@ -359961,6 +359961,12 @@ var repeatOnFailure = function (command, options) {
|
|
|
359961
359961
|
return "\n until ".concat(command, "\n do\n echo \"Trying again.\"\n sleep ").concat(options.pauseInSeconds, "\n done\n ");
|
|
359962
359962
|
};
|
|
359963
359963
|
exports.repeatOnFailure = repeatOnFailure;
|
|
359964
|
+
var collapseableSection = function (name, header) {
|
|
359965
|
+
return function (commands) {
|
|
359966
|
+
return __spreadArray(__spreadArray(["echo -e \"\\e[0Ksection_start:$(date +%s):".concat(name, "[collapsed=true]\\r\\e[0K").concat(header, "\"")], __read(commands), false), ["echo -e \"\\e[0Ksection_end:$(date +%s):".concat(name, "\\r\\e[0K\"")], false);
|
|
359967
|
+
};
|
|
359968
|
+
};
|
|
359969
|
+
exports.collapseableSection = collapseableSection;
|
|
359964
359970
|
|
|
359965
359971
|
/***/ }),
|
|
359966
359972
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": ">=12.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@catladder/pipeline": "0.0.0-main-
|
|
27
|
+
"@catladder/pipeline": "0.0.0-main-04ed14d8",
|
|
28
28
|
"@kubernetes/client-node": "^0.16.2",
|
|
29
29
|
"@tsconfig/node14": "^1.0.1",
|
|
30
30
|
"@types/common-tags": "^1.8.0",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"typescript": "^4.5.4",
|
|
58
58
|
"vorpal": "^1.12.0"
|
|
59
59
|
},
|
|
60
|
-
"version": "0.0.0-main-
|
|
60
|
+
"version": "0.0.0-main-04ed14d8",
|
|
61
61
|
"stableVersion": "0.0.0"
|
|
62
62
|
}
|