@catladder/cli 3.11.2 → 3.12.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRemoveOldRevisionsAndImagesCommand = void 0;
|
|
4
|
+
const gitlab_1 = require("../../utils/gitlab");
|
|
4
5
|
const artifactsRegistry_1 = require("./artifactsRegistry");
|
|
5
6
|
const cloudRunRevisions_1 = require("./cloudRunRevisions");
|
|
6
7
|
const getRemoveOldRevisionsAndImagesCommand = (context, when) => {
|
|
@@ -14,7 +15,10 @@ const getRemoveOldRevisionsAndImagesCommand = (context, when) => {
|
|
|
14
15
|
const imagesToKeep = revisionsToKeep + 1;
|
|
15
16
|
const deleteOldRevisionsCommands = (0, cloudRunRevisions_1.getDeleteUnusedRevisionsCommands)(context, revisionsToKeep);
|
|
16
17
|
const deleteOldImagesCommands = (0, artifactsRegistry_1.getDeleteUnusedImagesCommands)(context, imagesToKeep);
|
|
17
|
-
return
|
|
18
|
+
return (0, gitlab_1.allowFailureInScripts)([
|
|
19
|
+
...deleteOldRevisionsCommands,
|
|
20
|
+
...deleteOldImagesCommands,
|
|
21
|
+
]);
|
|
18
22
|
};
|
|
19
23
|
exports.getRemoveOldRevisionsAndImagesCommand = getRemoveOldRevisionsAndImagesCommand;
|
|
20
24
|
//# sourceMappingURL=cleanup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../../../../../pipeline/src/deploy/cloudRun/cleanup.ts"],"names":[],"mappings":";;;AACA,2DAAoE;AACpE,2DAAuE;AAEhE,MAAM,qCAAqC,GAAG,CACnD,OAAyB,EACzB,IAA6B,EAC7B,EAAE;IACF,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtB,+FAA+F;QAC/F,OAAO,IAAA,iDAA6B,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