@catladder/pipeline 1.40.4 → 1.41.2
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/bin/catladder-gitlab.js +1 -1
- package/dist/build/base/createBuildJob.d.ts +2 -2
- package/dist/build/base/getBuildInfo.d.ts +1 -1
- package/dist/build/docker.d.ts +2 -2
- package/dist/build/index.d.ts +3 -3
- package/dist/build/node/buildJob.d.ts +2 -2
- package/dist/build/node/cache.d.ts +2 -2
- package/dist/build/node/index.d.ts +1 -1
- package/dist/build/node/meteor.d.ts +1 -1
- package/dist/build/node/testJob.d.ts +2 -2
- package/dist/build/node/yarn.d.ts +1 -1
- package/dist/bundles/catladder-gitlab/index.js +15 -0
- package/dist/config/configruedEnvs.d.ts +1 -1
- package/dist/config/readConfig.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/context/index.d.ts +2 -2
- package/dist/defaults/index.d.ts +1 -1
- package/dist/deploy/base.d.ts +2 -2
- package/dist/deploy/custom/deployJob.d.ts +2 -2
- package/dist/deploy/custom/index.d.ts +1 -1
- package/dist/deploy/index.d.ts +3 -3
- package/dist/deploy/kubernetes/additionalSecretKeys.d.ts +1 -1
- package/dist/deploy/kubernetes/cloudsql.d.ts +1 -1
- package/dist/deploy/kubernetes/deployJob.d.ts +2 -2
- package/dist/deploy/kubernetes/index.d.ts +1 -1
- package/dist/deploy/kubernetes/kubeEnv.d.ts +1 -1
- package/dist/deploy/kubernetes/kubeValues.d.ts +1 -1
- package/dist/deploy/kubernetes/mongodb.d.ts +1 -1
- package/dist/deploy/utils.d.ts +2 -2
- package/dist/pipeline/createChildPipeline.d.ts +2 -2
- package/dist/pipeline/createJobs.d.ts +2 -2
- package/dist/pipeline/gitlab/makeGitlabJob.d.ts +2 -2
- package/dist/pipeline/packageManager.d.ts +1 -1
- package/dist/rules/index.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +5 -5
- package/dist/types/context.d.ts +1 -1
- package/dist/types/jobs.d.ts +1 -1
- package/dist/types/pipeline.d.ts +1 -1
- package/package.json +13 -10
- package/scripts/bundle +2 -0
- package/src/build/base/createBuildJob.ts +3 -2
- package/src/build/base/getBuildInfo.ts +1 -1
- package/src/build/docker.ts +2 -2
- package/src/build/index.ts +3 -3
- package/src/build/node/buildJob.ts +2 -2
- package/src/build/node/cache.ts +2 -2
- package/src/build/node/index.ts +1 -1
- package/src/build/node/meteor.ts +2 -2
- package/src/build/node/testJob.ts +2 -2
- package/src/build/node/yarn.ts +1 -1
- package/src/build/tests/storybook.test.ts +1 -1
- package/src/catladder-gitlab.ts +1 -1
- package/src/config/configruedEnvs.test.ts +2 -2
- package/src/config/configruedEnvs.ts +5 -4
- package/src/config/readConfig.ts +1 -1
- package/src/context/index.ts +5 -4
- package/src/defaults/index.ts +1 -1
- package/src/deploy/base.ts +2 -2
- package/src/deploy/custom/deployJob.ts +4 -3
- package/src/deploy/custom/index.ts +1 -1
- package/src/deploy/index.ts +3 -3
- package/src/deploy/kubernetes/additionalSecretKeys.ts +1 -1
- package/src/deploy/kubernetes/cloudsql.ts +2 -1
- package/src/deploy/kubernetes/deployJob.ts +2 -2
- package/src/deploy/kubernetes/index.ts +1 -1
- package/src/deploy/kubernetes/kubeEnv.ts +1 -1
- package/src/deploy/kubernetes/kubeValues.ts +2 -2
- package/src/deploy/kubernetes/mongodb.ts +2 -1
- package/src/deploy/kubernetes/processSecretsAsFiles.ts +1 -1
- package/src/deploy/utils.ts +3 -2
- package/src/pipeline/createChildPipeline.test.ts +1 -1
- package/src/pipeline/createChildPipeline.ts +2 -2
- package/src/pipeline/createJobs.ts +4 -4
- package/src/pipeline/gitlab/makeGitlabJob.ts +2 -2
- package/src/pipeline/packageManager.ts +1 -1
- package/src/rules/index.ts +1 -1
- package/src/types/config.ts +5 -5
- package/src/types/context.ts +1 -1
- package/src/types/jobs.ts +1 -1
- package/src/types/pipeline.ts +1 -1
- package/tsconfig.json +2 -0
package/src/build/node/meteor.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { join } from "path";
|
|
2
2
|
import { getRunnerImage } from "../../runner";
|
|
3
|
-
import { GitlabJobCache } from "../../types";
|
|
3
|
+
import type { GitlabJobCache } from "../../types";
|
|
4
4
|
import type { Context } from "../../types/context";
|
|
5
5
|
|
|
6
|
-
import { CatladderJob } from "../../types/jobs";
|
|
6
|
+
import type { CatladderJob } from "../../types/jobs";
|
|
7
7
|
|
|
8
8
|
import { APP_BUILD_JOB_NAME } from "../base/constants";
|
|
9
9
|
import { createBuildJob } from "../base/createBuildJob";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getRunnerImage } from "../../runner";
|
|
2
|
-
import { Context } from "../../types/context";
|
|
3
|
-
import { CatladderJob } from "../../types/jobs";
|
|
2
|
+
import type { Context } from "../../types/context";
|
|
3
|
+
import type { CatladderJob } from "../../types/jobs";
|
|
4
4
|
import { ensureArray, notNil } from "../../utils";
|
|
5
5
|
import { getNodeCache } from "./cache";
|
|
6
6
|
import { NODE_RUNNER_BUILD_VARIABLES } from "./constants";
|
package/src/build/node/yarn.ts
CHANGED
package/src/catladder-gitlab.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { dump } from "js-yaml";
|
|
|
3
3
|
import { readConfigSync } from "./config";
|
|
4
4
|
import { PIPELINE_IMAGE_TAG } from "./constants";
|
|
5
5
|
import { createChildPipeline } from "./pipeline";
|
|
6
|
-
import { PipelineTrigger } from "./types";
|
|
6
|
+
import type { PipelineTrigger } from "./types";
|
|
7
7
|
|
|
8
8
|
const {
|
|
9
9
|
CI_MERGE_REQUEST_ID,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAllEnvsByTrigger } from ".";
|
|
2
|
-
import { DeployConfigKubernetesCluster } from "..";
|
|
3
|
-
import { Config } from "../types";
|
|
2
|
+
import type { DeployConfigKubernetesCluster } from "..";
|
|
3
|
+
import type { Config } from "../types";
|
|
4
4
|
|
|
5
5
|
describe("getAllEnvsByTrigger", () => {
|
|
6
6
|
const cluster: DeployConfigKubernetesCluster = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
Config,
|
|
3
|
-
DEFAULT_ENV_TYPES,
|
|
4
3
|
EnvType,
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
PipelineTrigger} from "../types";
|
|
5
|
+
import {
|
|
6
|
+
DEFAULT_ENV_TYPES,
|
|
7
|
+
getEnvTypesByTrigger
|
|
7
8
|
} from "../types";
|
|
8
9
|
|
|
9
10
|
const getConfiguredAndDefaultEnvs = (
|
package/src/config/readConfig.ts
CHANGED
package/src/context/index.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { isObject, merge } from "lodash";
|
|
2
2
|
import slugify from "slugify";
|
|
3
3
|
import { BUILD_TYPES } from "../build";
|
|
4
|
-
import { BuildConfig } from "../build/types";
|
|
4
|
+
import type { BuildConfig } from "../build/types";
|
|
5
5
|
import { DEPLOY_TYPES, getKubernetesNamespace } from "../deploy";
|
|
6
|
-
import { DeployConfig } from "../deploy/types";
|
|
7
|
-
import { Config, DevLocalEnvConfig
|
|
8
|
-
import {
|
|
6
|
+
import type { DeployConfig } from "../deploy/types";
|
|
7
|
+
import type { Config, DevLocalEnvConfig } from "../types/config";
|
|
8
|
+
import { isKnowEnvType } from "../types/config";
|
|
9
|
+
import type {
|
|
9
10
|
CommitInfo,
|
|
10
11
|
Context,
|
|
11
12
|
Environment,
|
package/src/defaults/index.ts
CHANGED
package/src/deploy/base.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDockerImageVariables, requiresDockerBuild } from "../build/docker";
|
|
2
|
-
import { Context } from "../types";
|
|
3
|
-
import { CatladderJob } from "../types/jobs";
|
|
2
|
+
import type { Context } from "../types";
|
|
3
|
+
import type { CatladderJob } from "../types/jobs";
|
|
4
4
|
import { contextIsStoppable } from "./utils";
|
|
5
5
|
|
|
6
6
|
export const DEPLOY_JOB_NAME = "🚀 Deploy";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { merge } from "lodash";
|
|
2
|
-
import { BuildConfigType
|
|
2
|
+
import type { BuildConfigType } from "../..";
|
|
3
|
+
import { BuildTypes } from "../..";
|
|
3
4
|
import { getYarnInstall } from "../../build/node/yarn";
|
|
4
|
-
import { Context } from "../../types/context";
|
|
5
|
-
import { CatladderJob } from "../../types/jobs";
|
|
5
|
+
import type { Context } from "../../types/context";
|
|
6
|
+
import type { CatladderJob } from "../../types/jobs";
|
|
6
7
|
import { getBaseDeploymentJob } from "../base";
|
|
7
8
|
import { isOfDeployType } from "../types";
|
|
8
9
|
|
package/src/deploy/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Context } from "../types/context";
|
|
2
|
-
import { CatladderJob } from "../types/jobs";
|
|
1
|
+
import type { Context } from "../types/context";
|
|
2
|
+
import type { CatladderJob } from "../types/jobs";
|
|
3
3
|
import { CUSTOM_DEPLOY_TYPE } from "./custom";
|
|
4
4
|
import { KUBERNETES_DEPLOY_TYPE } from "./kubernetes";
|
|
5
|
-
import { DeployConfigGeneric, DeployConfigType } from "./types";
|
|
5
|
+
import type { DeployConfigGeneric, DeployConfigType } from "./types";
|
|
6
6
|
export * from "./kubernetes";
|
|
7
7
|
export * from "./types";
|
|
8
8
|
export * from "./utils";
|
|
@@ -2,8 +2,8 @@ import { dump } from "js-yaml";
|
|
|
2
2
|
import { merge } from "lodash";
|
|
3
3
|
import { getSecretVarNameForContext } from "../..";
|
|
4
4
|
import { getRunnerImage } from "../../runner";
|
|
5
|
-
import { Context } from "../../types/context";
|
|
6
|
-
import { CatladderJob } from "../../types/jobs";
|
|
5
|
+
import type { Context } from "../../types/context";
|
|
6
|
+
import type { CatladderJob } from "../../types/jobs";
|
|
7
7
|
import {
|
|
8
8
|
getBaseDeploymentJob,
|
|
9
9
|
getBaseDeploymentStopJob,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { merge } from "lodash";
|
|
2
|
-
import { DeployConfigKubernetesValues } from "..";
|
|
3
|
-
import { Context } from "../../types/context";
|
|
2
|
+
import type { DeployConfigKubernetesValues } from "..";
|
|
3
|
+
import type { Context } from "../../types/context";
|
|
4
4
|
import { mergeWithMergingArrays } from "../../utils";
|
|
5
5
|
import { isOfDeployType } from "../types";
|
|
6
6
|
import { createCloudsqlBaseConfig } from "./cloudsql";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { range } from "lodash";
|
|
2
|
-
import { Context
|
|
2
|
+
import type { Context } from "../..";
|
|
3
|
+
import { getSecretVarNameForContext, isOfDeployType } from "../..";
|
|
3
4
|
|
|
4
5
|
const getCredentialString = (context: Context) =>
|
|
5
6
|
`root:$${getSecretVarNameForContext(context, "MONGODB_ROOT_PASSWORD")}@`;
|
package/src/deploy/utils.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Config, Context } from "../types";
|
|
2
|
-
import { DeployConfigKubernetesCluster
|
|
1
|
+
import type { Config, Context } from "../types";
|
|
2
|
+
import type { DeployConfigKubernetesCluster} from "./types";
|
|
3
|
+
import { isOfDeployType } from "./types";
|
|
3
4
|
|
|
4
5
|
export const getFullKubernetesClusterName = (
|
|
5
6
|
cluster: DeployConfigKubernetesCluster
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getAllEnvsByTrigger, getAllEnvsInAllComponents } from "../config";
|
|
2
2
|
import { RULES_ALWAYS } from "../rules";
|
|
3
3
|
import { getRunnerImage } from "../runner";
|
|
4
|
-
import { GitlabPipeline, Pipeline, PipelineJob, PipelineType } from "../types";
|
|
5
|
-
import { Config, PipelineTrigger } from "../types/config";
|
|
4
|
+
import type { GitlabPipeline, Pipeline, PipelineJob, PipelineType } from "../types";
|
|
5
|
+
import type { Config, PipelineTrigger } from "../types/config";
|
|
6
6
|
import { BASE_STAGES } from "../types/jobs";
|
|
7
7
|
import { createJobs } from "./createJobs";
|
|
8
8
|
|
|
@@ -3,10 +3,10 @@ import { isFunction, isObject } from "lodash";
|
|
|
3
3
|
import { BUILD_TYPES } from "../build";
|
|
4
4
|
import { createContext } from "../context";
|
|
5
5
|
import { DEPLOY_TYPES } from "../deploy";
|
|
6
|
-
import { PipelineJob, PipelineType } from "../types";
|
|
7
|
-
import { Config, PipelineTrigger } from "../types/config";
|
|
8
|
-
import { CommitInfo, Context } from "../types/context";
|
|
9
|
-
import { CatladderJob } from "../types/jobs";
|
|
6
|
+
import type { PipelineJob, PipelineType } from "../types";
|
|
7
|
+
import type { Config, PipelineTrigger } from "../types/config";
|
|
8
|
+
import type { CommitInfo, Context } from "../types/context";
|
|
9
|
+
import type { CatladderJob } from "../types/jobs";
|
|
10
10
|
import { notNil } from "../utils";
|
|
11
11
|
import { makeGitlabJob } from "./gitlab/makeGitlabJob";
|
|
12
12
|
import { getPackageManagerInfo } from "./packageManager";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BASE_RETRY } from "../../defaults";
|
|
2
|
-
import { GitlabJobDef } from "../../types";
|
|
3
|
-
import { CatladderJob } from "../../types/jobs";
|
|
2
|
+
import type { GitlabJobDef } from "../../types";
|
|
3
|
+
import type { CatladderJob } from "../../types/jobs";
|
|
4
4
|
|
|
5
5
|
export const makeGitlabJob = ({
|
|
6
6
|
envMode,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { exec } from "child-process-promise";
|
|
2
|
-
import { Config, PackageManagerInfo } from "../types";
|
|
2
|
+
import type { Config, PackageManagerInfo } from "../types";
|
|
3
3
|
import { pathEqual } from "path-equal";
|
|
4
4
|
import memoizee from "memoizee";
|
|
5
5
|
import { join } from "path";
|
package/src/rules/index.ts
CHANGED
package/src/types/config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BuildConfig } from "../build/types";
|
|
2
|
-
import { DeployConfig } from "../deploy/types";
|
|
3
|
-
import { PartialDeep } from "type-fest";
|
|
4
|
-
import { CatladderJob } from "./jobs";
|
|
5
|
-
import { Context } from "./context";
|
|
1
|
+
import type { BuildConfig } from "../build/types";
|
|
2
|
+
import type { DeployConfig } from "../deploy/types";
|
|
3
|
+
import type { PartialDeep } from "type-fest";
|
|
4
|
+
import type { CatladderJob } from "./jobs";
|
|
5
|
+
import type { Context } from "./context";
|
|
6
6
|
export type PipelineTrigger = "mainBranch" | "mr" | "taggedRelease";
|
|
7
7
|
|
|
8
8
|
/**
|
package/src/types/context.ts
CHANGED
package/src/types/jobs.ts
CHANGED
package/src/types/pipeline.ts
CHANGED
package/tsconfig.json
CHANGED