@catladder/pipeline 0.0.0-refactor-cloud-run-825d7e86 → 0.0.0-refactor-docker-9fda97e9

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.
Files changed (323) hide show
  1. package/dist/bash/BashExpression.d.ts +40 -0
  2. package/dist/bash/BashExpression.js +124 -0
  3. package/dist/bash/bashExpressionPerPipelineType.d.ts +6 -0
  4. package/dist/bash/bashExpressionPerPipelineType.js +11 -0
  5. package/dist/bash/bashYaml.d.ts +10 -0
  6. package/dist/bash/bashYaml.js +46 -0
  7. package/dist/bash/getInjectVarsScript.d.ts +2 -0
  8. package/dist/bash/getInjectVarsScript.js +45 -0
  9. package/dist/bash/replaceAsync.d.ts +2 -0
  10. package/dist/{pipeline/commitInfo/getCommitInfo.js → bash/replaceAsync.js} +49 -21
  11. package/dist/build/base/__tests__/createArtifactsConfig.test.js +3 -1
  12. package/dist/build/base/constants.js +3 -1
  13. package/dist/build/base/createAppBuildJob.d.ts +2 -1
  14. package/dist/build/base/createAppBuildJob.js +11 -6
  15. package/dist/build/base/createArtifactsConfig.d.ts +1 -1
  16. package/dist/build/base/createArtifactsConfig.js +3 -1
  17. package/dist/build/base/index.js +3 -1
  18. package/dist/build/base/writeBuildInfo.js +4 -3
  19. package/dist/build/base/writeDotEnv.js +12 -3
  20. package/dist/build/custom/__tests__/testJob.test.js +3 -1
  21. package/dist/build/custom/buildJob.js +6 -14
  22. package/dist/build/custom/index.js +3 -1
  23. package/dist/build/custom/testJob.d.ts +1 -1
  24. package/dist/build/custom/testJob.js +18 -14
  25. package/dist/build/docker.d.ts +28 -33
  26. package/dist/build/docker.js +39 -14
  27. package/dist/build/index.d.ts +1 -1
  28. package/dist/build/index.js +13 -7
  29. package/dist/build/node/buildJob.js +5 -13
  30. package/dist/build/node/cache.js +6 -3
  31. package/dist/build/node/constants.js +3 -1
  32. package/dist/build/node/index.js +3 -1
  33. package/dist/build/node/meteor.js +6 -3
  34. package/dist/build/node/testJob.js +18 -14
  35. package/dist/build/node/yarn.d.ts +3 -2
  36. package/dist/build/node/yarn.js +6 -3
  37. package/dist/build/rails/build.js +4 -2
  38. package/dist/build/rails/index.js +3 -1
  39. package/dist/build/rails/test.js +15 -11
  40. package/dist/build/sbom.js +3 -1
  41. package/dist/build/types.d.ts +57 -43
  42. package/dist/build/types.js +3 -1
  43. package/dist/bundles/catladder-gitlab/index.js +31112 -25265
  44. package/dist/catladder-gitlab.js +10 -54
  45. package/dist/config/__tests__/configruedEnvs.test.js +3 -1
  46. package/dist/config/configruedEnvs.js +3 -1
  47. package/dist/config/index.js +13 -7
  48. package/dist/config/readConfig.js +6 -5
  49. package/dist/constants.js +5 -3
  50. package/dist/context/__tests__/resolveReferences.test.js +40 -8
  51. package/dist/context/getBuildInfoVariables.d.ts +7 -0
  52. package/dist/context/getBuildInfoVariables.js +29 -0
  53. package/dist/context/getEnvConfig.js +3 -1
  54. package/dist/context/getEnvType.js +3 -1
  55. package/dist/context/getEnvironment.d.ts +3 -3
  56. package/dist/context/getEnvironment.js +10 -10
  57. package/dist/context/getEnvironmentContext.d.ts +7 -3
  58. package/dist/context/getEnvironmentContext.js +21 -11
  59. package/dist/context/getEnvironmentVariables.d.ts +26 -5
  60. package/dist/context/getEnvironmentVariables.js +41 -25
  61. package/dist/context/getLabels.js +4 -2
  62. package/dist/context/getReviewSlug.d.ts +4 -0
  63. package/dist/context/getReviewSlug.js +22 -0
  64. package/dist/context/index.d.ts +12 -3
  65. package/dist/context/index.js +21 -15
  66. package/dist/context/resolveReferences.d.ts +3 -1
  67. package/dist/context/resolveReferences.js +54 -22
  68. package/dist/context/transformJobOnlyVars.d.ts +5 -2
  69. package/dist/context/transformJobOnlyVars.js +4 -2
  70. package/dist/context/utils/envVars.d.ts +1 -1
  71. package/dist/context/utils/envVars.js +5 -2
  72. package/dist/defaults/index.js +3 -1
  73. package/dist/deploy/base/deploy.d.ts +1 -1
  74. package/dist/deploy/base/deploy.js +12 -11
  75. package/dist/deploy/base/index.js +3 -1
  76. package/dist/deploy/base/rollback.d.ts +1 -1
  77. package/dist/deploy/base/rollback.js +13 -9
  78. package/dist/deploy/base/stop.d.ts +1 -1
  79. package/dist/deploy/base/stop.js +16 -11
  80. package/dist/deploy/base/types.d.ts +1 -1
  81. package/dist/deploy/base/types.js +3 -1
  82. package/dist/deploy/base/variables.js +3 -1
  83. package/dist/deploy/cloudRun/artifactsRegistry.d.ts +2 -1
  84. package/dist/deploy/cloudRun/artifactsRegistry.js +6 -4
  85. package/dist/deploy/cloudRun/cleanup.js +3 -1
  86. package/dist/deploy/cloudRun/cloudRunRevisions.js +3 -1
  87. package/dist/deploy/cloudRun/createJobs/cloudRunJobs.js +20 -11
  88. package/dist/deploy/cloudRun/createJobs/cloudRunServices.d.ts +2 -2
  89. package/dist/deploy/cloudRun/createJobs/cloudRunServices.js +47 -8
  90. package/dist/deploy/cloudRun/createJobs/common.d.ts +3 -0
  91. package/dist/deploy/cloudRun/createJobs/common.js +17 -3
  92. package/dist/deploy/cloudRun/createJobs/constants.d.ts +1 -0
  93. package/dist/deploy/cloudRun/createJobs/constants.js +7 -0
  94. package/dist/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +9 -2
  95. package/dist/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +3 -1
  96. package/dist/deploy/cloudRun/createJobs/index.js +25 -8
  97. package/dist/deploy/cloudRun/createJobs/volumes.d.ts +3 -0
  98. package/dist/deploy/cloudRun/createJobs/volumes.js +58 -0
  99. package/dist/deploy/cloudRun/index.js +13 -7
  100. package/dist/deploy/cloudRun/utils/createArgsString.d.ts +3 -1
  101. package/dist/deploy/cloudRun/utils/createArgsString.js +25 -17
  102. package/dist/deploy/cloudRun/utils/database.d.ts +4 -2
  103. package/dist/deploy/cloudRun/utils/database.js +28 -15
  104. package/dist/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +3 -1
  105. package/dist/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
  106. package/dist/deploy/cloudRun/utils/getServiceName.js +3 -1
  107. package/dist/deploy/cloudRun/utils/jobName.d.ts +2 -1
  108. package/dist/deploy/cloudRun/utils/jobName.js +4 -2
  109. package/dist/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +3 -1
  110. package/dist/deploy/cloudSql/utils.d.ts +2 -1
  111. package/dist/deploy/cloudSql/utils.js +7 -2
  112. package/dist/deploy/custom/deployJob.js +3 -1
  113. package/dist/deploy/custom/index.js +3 -1
  114. package/dist/deploy/dockerTag/deployJob.js +3 -1
  115. package/dist/deploy/dockerTag/index.js +3 -1
  116. package/dist/deploy/index.d.ts +4 -3
  117. package/dist/deploy/index.js +13 -7
  118. package/dist/deploy/kubernetes/additionalSecretKeys.js +3 -1
  119. package/dist/deploy/kubernetes/cloudSql/index.d.ts +3 -2
  120. package/dist/deploy/kubernetes/cloudSql/index.js +6 -4
  121. package/dist/deploy/kubernetes/deployJob.js +22 -15
  122. package/dist/deploy/kubernetes/index.js +51 -14
  123. package/dist/deploy/kubernetes/kubeEnv.d.ts +3 -2
  124. package/dist/deploy/kubernetes/kubeEnv.js +7 -4
  125. package/dist/deploy/kubernetes/kubeValues.d.ts +2 -2
  126. package/dist/deploy/kubernetes/kubeValues.js +3 -2
  127. package/dist/deploy/kubernetes/mongodb.js +3 -1
  128. package/dist/deploy/kubernetes/processSecretsAsFiles.d.ts +2 -1
  129. package/dist/deploy/kubernetes/processSecretsAsFiles.js +3 -1
  130. package/dist/deploy/sbom.js +3 -1
  131. package/dist/deploy/types/base.d.ts +8 -2
  132. package/dist/deploy/types/base.js +3 -1
  133. package/dist/deploy/types/custom.d.ts +1 -1
  134. package/dist/deploy/types/custom.js +3 -1
  135. package/dist/deploy/types/dockerTag.d.ts +1 -1
  136. package/dist/deploy/types/dockerTag.js +3 -1
  137. package/dist/deploy/types/googleCloudRun.d.ts +74 -17
  138. package/dist/deploy/types/googleCloudRun.js +3 -1
  139. package/dist/deploy/types/index.d.ts +6 -6
  140. package/dist/deploy/types/index.js +13 -7
  141. package/dist/deploy/types/kubernetes.d.ts +22 -22
  142. package/dist/deploy/types/kubernetes.js +3 -1
  143. package/dist/deploy/utils.js +3 -1
  144. package/dist/index.d.ts +3 -2
  145. package/dist/index.js +16 -9
  146. package/dist/packageInfos.d.ts +2 -0
  147. package/dist/packageInfos.js +14 -0
  148. package/dist/pipeline/createAllJobs.d.ts +13 -5
  149. package/dist/pipeline/createAllJobs.js +21 -10
  150. package/dist/pipeline/createChildPipeline.d.ts +1 -1
  151. package/dist/pipeline/createChildPipeline.js +30 -63
  152. package/dist/pipeline/createJobsForComponent.d.ts +3 -3
  153. package/dist/pipeline/createJobsForComponent.js +19 -18
  154. package/dist/pipeline/createMainPipeline.d.ts +3 -0
  155. package/dist/pipeline/createMainPipeline.js +248 -0
  156. package/dist/pipeline/generatePipelineFiles.d.ts +2 -0
  157. package/dist/pipeline/generatePipelineFiles.js +178 -0
  158. package/dist/pipeline/getPipelineStages.d.ts +8 -0
  159. package/dist/pipeline/getPipelineStages.js +55 -0
  160. package/dist/pipeline/gitlab/createGitlabJobs.d.ts +15 -6
  161. package/dist/pipeline/gitlab/createGitlabJobs.js +98 -25
  162. package/dist/pipeline/gitlab/createGitlabPipeline.d.ts +8 -0
  163. package/dist/pipeline/gitlab/createGitlabPipeline.js +38 -0
  164. package/dist/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.d.ts +1 -0
  165. package/dist/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js +29 -0
  166. package/dist/pipeline/gitlab/gitlabReleaseJobs.d.ts +33 -0
  167. package/dist/pipeline/gitlab/gitlabReleaseJobs.js +24 -0
  168. package/dist/pipeline/index.d.ts +3 -1
  169. package/dist/pipeline/index.js +16 -8
  170. package/dist/pipeline/packageManager.js +4 -2
  171. package/dist/pipeline/yarn/yarnUtils.js +6 -4
  172. package/dist/rules/index.d.ts +7 -2
  173. package/dist/rules/index.js +34 -16
  174. package/dist/runner/index.d.ts +1 -1
  175. package/dist/runner/index.js +3 -1
  176. package/dist/tsconfig.tsbuildinfo +1 -1
  177. package/dist/types/config.d.ts +31 -18
  178. package/dist/types/config.js +5 -2
  179. package/dist/types/context.d.ts +37 -32
  180. package/dist/types/context.js +3 -1
  181. package/dist/types/environmentContext.d.ts +11 -7
  182. package/dist/types/environmentContext.js +3 -1
  183. package/dist/types/gitlab-ci-yml.d.ts +30 -30
  184. package/dist/types/gitlab-ci-yml.js +3 -2
  185. package/dist/types/gitlab-types.d.ts +4 -6
  186. package/dist/types/gitlab-types.js +3 -1
  187. package/dist/types/index.js +13 -7
  188. package/dist/types/jobs.d.ts +23 -6
  189. package/dist/types/jobs.js +3 -1
  190. package/dist/types/pipeline.d.ts +4 -3
  191. package/dist/types/pipeline.js +3 -1
  192. package/dist/types/utils.d.ts +1 -1
  193. package/dist/types/utils.js +3 -1
  194. package/dist/utils/gitlab.js +3 -1
  195. package/dist/utils/index.d.ts +1 -1
  196. package/dist/utils/index.js +3 -1
  197. package/dist/utils/writeFiles.d.ts +7 -0
  198. package/dist/{pipeline/commitInfo/getBuildId.js → utils/writeFiles.js} +39 -22
  199. package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +495 -363
  200. package/examples/__snapshots__/cloud-run-meteor-with-worker.ts.snap +474 -342
  201. package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +492 -360
  202. package/examples/__snapshots__/cloud-run-no-service.ts.snap +2023 -0
  203. package/examples/__snapshots__/cloud-run-non-public.ts.snap +492 -360
  204. package/examples/__snapshots__/cloud-run-post-stop-job.ts.snap +501 -368
  205. package/examples/__snapshots__/cloud-run-service-gen2.ts.snap +1971 -0
  206. package/examples/__snapshots__/cloud-run-service-with-volumes.ts.snap +2015 -0
  207. package/examples/__snapshots__/cloud-run-with-ngnix.ts.snap +1971 -0
  208. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +1167 -867
  209. package/examples/__snapshots__/cloud-run-with-sql.ts.snap +1155 -867
  210. package/examples/__snapshots__/cloud-run-with-worker.ts.snap +494 -362
  211. package/examples/__snapshots__/custom-build-job-with-tests.ts.snap +464 -332
  212. package/examples/__snapshots__/custom-build-job.ts.snap +446 -326
  213. package/examples/__snapshots__/custom-deploy.ts.snap +331 -223
  214. package/examples/__snapshots__/custom-envs.ts.snap +135 -81
  215. package/examples/__snapshots__/custom-sbom-java.ts.snap +446 -326
  216. package/examples/__snapshots__/kubernetes-application-customization.ts.snap +858 -969
  217. package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +898 -957
  218. package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +906 -969
  219. package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +1638 -1728
  220. package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +986 -1137
  221. package/examples/__snapshots__/local-dot-env.ts.snap +1971 -0
  222. package/examples/__snapshots__/meteor-kubernetes.ts.snap +918 -1069
  223. package/examples/__snapshots__/multiline-var.ts.snap +4500 -0
  224. package/examples/__snapshots__/native-app.ts.snap +718 -554
  225. package/examples/__snapshots__/node-build-with-custom-image.ts.snap +492 -360
  226. package/examples/__snapshots__/node-build-with-docker-additions.ts.snap +500 -360
  227. package/examples/__snapshots__/rails-k8s-with-worker.ts.snap +1689 -1947
  228. package/examples/__snapshots__/wait-for-other-deploy.ts.snap +299 -231
  229. package/examples/cloud-run-memory-limit.ts +4 -1
  230. package/examples/cloud-run-no-service.ts +32 -0
  231. package/examples/cloud-run-service-gen2.ts +27 -0
  232. package/examples/cloud-run-service-with-volumes.ts +54 -0
  233. package/examples/cloud-run-with-ngnix.ts +24 -0
  234. package/examples/custom-deploy.ts +7 -7
  235. package/examples/local-dot-env.ts +25 -0
  236. package/examples/multiline-var.ts +64 -0
  237. package/package.json +5 -7
  238. package/src/bash/BashExpression.ts +81 -0
  239. package/src/bash/bashExpressionPerPipelineType.ts +16 -0
  240. package/src/bash/bashYaml.ts +46 -0
  241. package/src/bash/getInjectVarsScript.ts +12 -0
  242. package/src/bash/replaceAsync.ts +50 -0
  243. package/src/build/base/createAppBuildJob.ts +11 -5
  244. package/src/build/base/index.ts +1 -1
  245. package/src/build/base/writeBuildInfo.ts +1 -1
  246. package/src/build/base/writeDotEnv.ts +6 -1
  247. package/src/build/custom/buildJob.ts +4 -9
  248. package/src/build/custom/testJob.ts +3 -2
  249. package/src/build/docker.ts +62 -17
  250. package/src/build/node/buildJob.ts +5 -9
  251. package/src/build/node/meteor.ts +3 -3
  252. package/src/build/node/testJob.ts +3 -2
  253. package/src/build/node/yarn.ts +9 -4
  254. package/src/build/rails/build.ts +1 -0
  255. package/src/build/rails/test.ts +2 -1
  256. package/src/build/types.ts +61 -39
  257. package/src/catladder-gitlab.ts +8 -55
  258. package/src/config/readConfig.ts +2 -3
  259. package/src/constants.ts +5 -2
  260. package/src/context/__tests__/resolveReferences.test.ts +11 -6
  261. package/src/context/getBuildInfoVariables.ts +40 -0
  262. package/src/context/getEnvironment.ts +7 -23
  263. package/src/context/getEnvironmentContext.ts +25 -29
  264. package/src/context/getEnvironmentVariables.ts +61 -36
  265. package/src/context/getReviewSlug.ts +27 -0
  266. package/src/context/index.ts +24 -23
  267. package/src/context/resolveReferences.ts +29 -9
  268. package/src/context/transformJobOnlyVars.ts +5 -2
  269. package/src/context/utils/envVars.ts +2 -1
  270. package/src/deploy/base/deploy.ts +20 -18
  271. package/src/deploy/base/rollback.ts +8 -10
  272. package/src/deploy/base/stop.ts +8 -9
  273. package/src/deploy/cloudRun/artifactsRegistry.ts +9 -4
  274. package/src/deploy/cloudRun/createJobs/cloudRunJobs.ts +35 -15
  275. package/src/deploy/cloudRun/createJobs/cloudRunServices.ts +35 -20
  276. package/src/deploy/cloudRun/createJobs/common.ts +14 -1
  277. package/src/deploy/cloudRun/createJobs/constants.ts +1 -0
  278. package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +20 -2
  279. package/src/deploy/cloudRun/createJobs/index.ts +17 -8
  280. package/src/deploy/cloudRun/createJobs/volumes.ts +23 -0
  281. package/src/deploy/cloudRun/index.ts +28 -8
  282. package/src/deploy/cloudRun/utils/createArgsString.ts +21 -13
  283. package/src/deploy/cloudRun/utils/database.ts +25 -3
  284. package/src/deploy/cloudRun/utils/jobName.ts +7 -2
  285. package/src/deploy/cloudSql/utils.ts +12 -9
  286. package/src/deploy/index.ts +2 -1
  287. package/src/deploy/kubernetes/cloudSql/index.ts +3 -2
  288. package/src/deploy/kubernetes/deployJob.ts +24 -10
  289. package/src/deploy/kubernetes/index.ts +15 -8
  290. package/src/deploy/kubernetes/kubeEnv.ts +8 -6
  291. package/src/deploy/kubernetes/kubeValues.ts +0 -1
  292. package/src/deploy/kubernetes/processSecretsAsFiles.ts +2 -1
  293. package/src/deploy/types/base.ts +6 -0
  294. package/src/deploy/types/googleCloudRun.ts +73 -4
  295. package/src/index.ts +2 -1
  296. package/src/packageInfos.ts +10 -0
  297. package/src/pipeline/createAllJobs.ts +24 -10
  298. package/src/pipeline/createChildPipeline.ts +19 -30
  299. package/src/pipeline/createJobsForComponent.ts +14 -22
  300. package/src/pipeline/createMainPipeline.ts +88 -0
  301. package/src/pipeline/generatePipelineFiles.ts +29 -0
  302. package/src/pipeline/getPipelineStages.ts +22 -0
  303. package/src/pipeline/gitlab/createGitlabJobs.ts +174 -51
  304. package/src/pipeline/gitlab/createGitlabPipeline.ts +24 -0
  305. package/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.ts +46 -0
  306. package/src/pipeline/gitlab/gitlabReleaseJobs.ts +20 -0
  307. package/src/pipeline/index.ts +2 -0
  308. package/src/rules/index.ts +36 -9
  309. package/src/types/config.ts +24 -4
  310. package/src/types/context.ts +39 -26
  311. package/src/types/environmentContext.ts +12 -6
  312. package/src/types/gitlab-ci-yml.ts +0 -1
  313. package/src/types/gitlab-types.ts +5 -4
  314. package/src/types/jobs.ts +28 -3
  315. package/src/types/pipeline.ts +4 -0
  316. package/src/utils/writeFiles.ts +40 -0
  317. package/dist/deploy/cloudRun/createJobs/variables.d.ts +0 -5
  318. package/dist/deploy/cloudRun/createJobs/variables.js +0 -19
  319. package/dist/pipeline/commitInfo/getBuildId.d.ts +0 -6
  320. package/dist/pipeline/commitInfo/getCommitInfo.d.ts +0 -2
  321. package/src/deploy/cloudRun/createJobs/variables.ts +0 -21
  322. package/src/pipeline/commitInfo/getBuildId.ts +0 -17
  323. package/src/pipeline/commitInfo/getCommitInfo.ts +0 -15
@@ -1,6 +1,6 @@
1
1
  import type { DeployConfigBase } from "./base";
2
- export declare type Gcloudregion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "asia-east2" | "asia-northeast3" | "asia-southeast1" | "asia-southeast2" | "asia-south1" | "asia-south2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-west2" | "europe-west3" | "europe-west6" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-west2" | "us-west3" | "us-west4";
3
- export declare type DeployConfigCloudRunCloudSql = {
2
+ export type Gcloudregion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "asia-east2" | "asia-northeast3" | "asia-southeast1" | "asia-southeast2" | "asia-south1" | "asia-south2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-west2" | "europe-west3" | "europe-west6" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-west2" | "us-west3" | "us-west4";
3
+ export type DeployConfigCloudRunCloudSql = {
4
4
  type: "unmanaged";
5
5
  instanceConnectionName: string;
6
6
  /**
@@ -22,6 +22,20 @@ export declare type DeployConfigCloudRunCloudSql = {
22
22
  * defaults to true for review envs, to false for every other environment
23
23
  */
24
24
  deleteDatabaseOnStop?: boolean;
25
+ /**
26
+ * format of the `DATABASE_URL` environment variable
27
+ *
28
+ * the options are:
29
+ * - prisma: adds [required but ignored hostname](https://www.prisma.io/docs/orm/overview/databases/postgresql#connecting-via-sockets):
30
+ * `postgresql://$DB_USER:$DB_PASSWORD@localhost/$DB_NAME?host=/cloudsql/$CLOUD_SQL_INSTANCE_CONNECTION_NAME`
31
+ * - rails: percent-encodes the socket in the host part
32
+ * `postgresql://$DB_USER:$DB_PASSWORD@%2Fcloudsql%2FprojectId%3Aregion%3Ainstancename/$DB_NAME?`
33
+ * - jdbc: for use with Google Cloud SQL Connector for Java
34
+ * `jdbc:postgresql:///$DB_NAME?cloudSqlInstance=$CLOUD_SQL_INSTANCE_CONNECTION_NAME&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=$DB_USER&password=$DB_PASSWORD`
35
+ *
36
+ * defaults to prisma
37
+ */
38
+ dbConnectionStringFormat?: "prisma" | "rails" | "jdbc";
25
39
  /**
26
40
  * add additional query params to the database connection string
27
41
  */
@@ -32,8 +46,9 @@ export declare type DeployConfigCloudRunCloudSql = {
32
46
  statement_cache_size?: number;
33
47
  };
34
48
  };
35
- declare type Memory = `${number}${"M" | "G" | "Mi" | "Gi"}`;
36
- export declare type DeployConfigCloudRunService = {
49
+ type Memory = `${number}${"M" | "G" | "Mi" | "Gi"}`;
50
+ type Cpu = 1 | 2 | 4 | 6 | 8;
51
+ export type DeployConfigCloudRunService = {
37
52
  /**
38
53
  * command / entrypoint, fallsback to buildConfig.startcommand
39
54
  */
@@ -66,12 +81,25 @@ export declare type DeployConfigCloudRunService = {
66
81
  * Defaults to "all"
67
82
  */
68
83
  ingress?: "all" | "internal" | "internal-and-cloud-load-balancing";
84
+ /**
85
+ * CPU limit.
86
+ */
87
+ cpu?: Cpu;
69
88
  /**
70
89
  * memory limit. Defaults to 512MB
71
90
  */
72
91
  memory?: Memory;
73
- };
74
- export declare type DeployConfigCloudRunJobBase = {
92
+ /**
93
+ *
94
+ * set the execution environment.
95
+ *
96
+ * see https://cloud.google.com/run/docs/about-execution-environments
97
+ *
98
+ * defaults to gen1 according to gcloud
99
+ */
100
+ executionEnvironment?: "gen2" | "gen1";
101
+ } & DeployConfigCloudRunWithVolumes;
102
+ export type DeployConfigCloudRunJobBase = {
75
103
  /**
76
104
  * command
77
105
  */
@@ -81,7 +109,11 @@ export declare type DeployConfigCloudRunJobBase = {
81
109
  */
82
110
  image?: string;
83
111
  /**
84
- * memory limit of the job, defaults to 51Mi
112
+ * CPU limit of the job.
113
+ */
114
+ cpu?: Cpu;
115
+ /**
116
+ * memory limit of the job, defaults to 512Mi
85
117
  */
86
118
  memory?: `${number}${"M" | "G" | "Mi" | "Gi"}`;
87
119
  /**
@@ -90,22 +122,39 @@ export declare type DeployConfigCloudRunJobBase = {
90
122
  * you can specify something like 10m30s
91
123
  */
92
124
  timeout?: string;
93
- };
94
- declare type Minute = string;
95
- declare type Hour = string;
96
- declare type DayOfMonth = string;
97
- declare type DayOfWeek = string;
98
- declare type Month = string;
99
- export declare type DeployConfigCloudRunJobWithSchedule = DeployConfigCloudRunJobBase & {
125
+ /**
126
+ * number of tasks that may run concurrently, defaults to 1
127
+ */
128
+ parallelism?: number;
129
+ } & DeployConfigCloudRunWithVolumes;
130
+ type Minute = string;
131
+ type Hour = string;
132
+ type DayOfMonth = string;
133
+ type DayOfWeek = string;
134
+ type Month = string;
135
+ export type DeployConfigCloudRunJobWithSchedule = DeployConfigCloudRunJobBase & {
100
136
  when: "schedule";
101
137
  schedule: `${Minute} ${Hour} ${DayOfMonth} ${Month} ${DayOfWeek}`;
138
+ /**
139
+ * Max number of retries of the cloud scheduler.
140
+ * Note: the task itself is never retried.
141
+ *
142
+ * defaults to 0 (no retries)
143
+ */
102
144
  maxRetryAttempts?: 0 | 1 | 2 | 3 | 4 | 5;
103
145
  };
104
- export declare type DeployConfigCloudRunJobNormal = DeployConfigCloudRunJobBase & {
146
+ export type DeployConfigCloudRunJobNormal = DeployConfigCloudRunJobBase & {
105
147
  when: "manual" | "preDeploy" | "postDeploy" | "preStop" | "postStop";
106
148
  };
107
- export declare type DeployConfigCloudRunJob = DeployConfigCloudRunJobNormal | DeployConfigCloudRunJobWithSchedule;
108
- export declare type DeployConfigCloudRun = {
149
+ export type DeployConfigCloudRunWithVolumes = {
150
+ /**
151
+ * adds volumes to the service. This is an experimental feature and requires beta gcloud.
152
+ * sets executionEnvironment to gen2 automatically, since that is required
153
+ */
154
+ volumes?: DeployConfigCloudRunVolumes;
155
+ };
156
+ export type DeployConfigCloudRunJob = DeployConfigCloudRunJobNormal | DeployConfigCloudRunJobWithSchedule;
157
+ export type DeployConfigCloudRun = {
109
158
  /**
110
159
  * cloud run deployment.
111
160
  *
@@ -139,5 +188,13 @@ export declare type DeployConfigCloudRun = {
139
188
  * add cloudSql
140
189
  */
141
190
  cloudSql?: DeployConfigCloudRunCloudSql | false;
191
+ debug?: boolean;
142
192
  } & DeployConfigBase;
193
+ export type DeployConfigCloudRunVolumes = Record<string, DeployConfigCloudRunVolume>;
194
+ export type DeployConfigCloudRunVolume = {
195
+ type: "cloud-storage";
196
+ bucket: string;
197
+ mountPath: string;
198
+ readonly?: boolean;
199
+ };
143
200
  export {};
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -6,17 +6,17 @@ export * from "./custom";
6
6
  export * from "./googleCloudRun";
7
7
  export * from "./kubernetes";
8
8
  export * from "./dockerTag";
9
- export declare type DeployConfig = DeployConfigKubernetes | DeployConfigCustom | DeployConfigCloudRun | DeployConfigDockerTag;
10
- export declare type DeployConfigType = DeployConfig["type"];
11
- export declare type DeployConfigGeneric<T extends DeployConfigType> = Extract<DeployConfig, {
9
+ export type DeployConfig = DeployConfigKubernetes | DeployConfigCustom | DeployConfigCloudRun | DeployConfigDockerTag;
10
+ export type DeployConfigType = DeployConfig["type"];
11
+ export type DeployConfigGeneric<T extends DeployConfigType> = Extract<DeployConfig, {
12
12
  type: T;
13
13
  }>;
14
- export declare const isOfDeployType: <T extends ("kubernetes" | "custom" | "dockerTag" | "google-cloudrun")[]>(t: DeployConfig | false, ...types: T) => t is Extract<DeployConfigCustom, {
14
+ export declare const isOfDeployType: <T extends ("kubernetes" | "custom" | "google-cloudrun" | "dockerTag")[]>(t: DeployConfig | false, ...types: T) => t is Extract<DeployConfigKubernetes, {
15
15
  type: T[number];
16
- }> | Extract<DeployConfigDockerTag, {
16
+ }> | Extract<DeployConfigCustom, {
17
17
  type: T[number];
18
18
  }> | Extract<DeployConfigCloudRun, {
19
19
  type: T[number];
20
- }> | Extract<DeployConfigKubernetes, {
20
+ }> | Extract<DeployConfigDockerTag, {
21
21
  type: T[number];
22
22
  }>;
@@ -2,12 +2,16 @@
2
2
 
3
3
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, {
6
- enumerable: true,
7
- get: function () {
8
- return m[k];
9
- }
10
- });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = {
8
+ enumerable: true,
9
+ get: function () {
10
+ return m[k];
11
+ }
12
+ };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
11
15
  } : function (o, m, k, k2) {
12
16
  if (k2 === undefined) k2 = k;
13
17
  o[k2] = m[k];
@@ -15,7 +19,9 @@ var __createBinding = this && this.__createBinding || (Object.create ? function
15
19
  var __exportStar = this && this.__exportStar || function (m, exports) {
16
20
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
21
  };
18
- exports.__esModule = true;
22
+ Object.defineProperty(exports, "__esModule", {
23
+ value: true
24
+ });
19
25
  exports.isOfDeployType = void 0;
20
26
  __exportStar(require("./custom"), exports);
21
27
  __exportStar(require("./googleCloudRun"), exports);
@@ -1,5 +1,5 @@
1
1
  import type { AllowUnknownProps, DeployConfigBase } from "./base";
2
- export declare type DeployConfigKubernetesClusterGCloud = {
2
+ export type DeployConfigKubernetesClusterGCloud = {
3
3
  type: "gcloud";
4
4
  /**
5
5
  * gcoud name of the cluster
@@ -18,22 +18,22 @@ export declare type DeployConfigKubernetesClusterGCloud = {
18
18
  */
19
19
  domainCanonical?: string;
20
20
  };
21
- export declare type DeployConfigKubernetesCluster = DeployConfigKubernetesClusterGCloud;
22
- export declare type KubernetesAutoscaleMetricResourceTarget = {
21
+ export type DeployConfigKubernetesCluster = DeployConfigKubernetesClusterGCloud;
22
+ export type KubernetesAutoscaleMetricResourceTarget = {
23
23
  type: "Utilization";
24
24
  averageUtilization: number;
25
25
  } | {
26
26
  type: "AverageValue";
27
27
  averageValue: number | string;
28
28
  };
29
- export declare type KubernetesAutoscaleMetric = {
29
+ export type KubernetesAutoscaleMetric = {
30
30
  type: "Resource";
31
31
  resource: {
32
32
  name: "cpu" | "memory";
33
33
  target: KubernetesAutoscaleMetricResourceTarget;
34
34
  };
35
35
  };
36
- export declare type KubernetesAutoscale = {
36
+ export type KubernetesAutoscale = {
37
37
  minReplicas: number;
38
38
  maxReplicas: number;
39
39
  /**
@@ -41,7 +41,7 @@ export declare type KubernetesAutoscale = {
41
41
  */
42
42
  metrics: KubernetesAutoscaleMetric[];
43
43
  };
44
- export declare type KubernetesResourcesDef = {
44
+ export type KubernetesResourcesDef = {
45
45
  limits?: {
46
46
  cpu?: string;
47
47
  memory?: string;
@@ -51,7 +51,7 @@ export declare type KubernetesResourcesDef = {
51
51
  memory?: string;
52
52
  };
53
53
  };
54
- declare type KubernetesHealthDef = {
54
+ type KubernetesHealthDef = {
55
55
  httpGet?: {
56
56
  path?: string;
57
57
  port?: number;
@@ -65,7 +65,7 @@ declare type KubernetesHealthDef = {
65
65
  successThreshold?: number;
66
66
  };
67
67
  };
68
- export declare type KubernetesUpdateStrategy = {
68
+ export type KubernetesUpdateStrategy = {
69
69
  rollingUpdate: {
70
70
  /**
71
71
  * how many pods can be created additionally to the target number
@@ -82,7 +82,7 @@ export declare type KubernetesUpdateStrategy = {
82
82
  };
83
83
  type: "RollingUpdate";
84
84
  };
85
- export declare type KubernetesWorkerDef = {
85
+ export type KubernetesWorkerDef = {
86
86
  enabled: boolean;
87
87
  /**
88
88
  * which command to run. defaults to `yarn start`
@@ -97,18 +97,18 @@ export declare type KubernetesWorkerDef = {
97
97
  */
98
98
  livenessProbe?: boolean;
99
99
  };
100
- declare type KubernetesTolerationExists = {
100
+ type KubernetesTolerationExists = {
101
101
  operator: "Exists";
102
102
  };
103
- declare type KubernetesTolerationEqual = {
103
+ type KubernetesTolerationEqual = {
104
104
  operator: "Equal";
105
105
  value: string;
106
106
  };
107
- export declare type KubernetesToleration = {
107
+ export type KubernetesToleration = {
108
108
  key: string;
109
109
  effect: "NoSchedule" | "PreferNoSchedule" | "NoExecute";
110
110
  } & (KubernetesTolerationEqual | KubernetesTolerationExists);
111
- export declare type DeployConfigMongodbBase = {
111
+ export type DeployConfigMongodbBase = {
112
112
  enabled?: boolean;
113
113
  dbName?: string;
114
114
  persistence?: {
@@ -124,7 +124,7 @@ export declare type DeployConfigMongodbBase = {
124
124
  resources?: KubernetesResourcesDef;
125
125
  tolerations?: KubernetesToleration[];
126
126
  };
127
- export declare type KubernetesRedirect = {
127
+ export type KubernetesRedirect = {
128
128
  /**
129
129
  * the domain to redirect from
130
130
  */
@@ -141,21 +141,21 @@ export declare type KubernetesRedirect = {
141
141
  */
142
142
  rule?: string;
143
143
  };
144
- export declare type DeployConfigMongodbStandalone = {
144
+ export type DeployConfigMongodbStandalone = {
145
145
  architecture: "standalone";
146
146
  };
147
- export declare type DeployConfigMongodbReplicaset = {
147
+ export type DeployConfigMongodbReplicaset = {
148
148
  architecture: "replicaset";
149
149
  /**
150
150
  * defaults to 2
151
151
  */
152
152
  replicaCount?: number;
153
153
  };
154
- export declare type DeployConfigMongodb = DeployConfigMongodbBase & (DeployConfigMongodbStandalone | DeployConfigMongodbReplicaset);
154
+ export type DeployConfigMongodb = DeployConfigMongodbBase & (DeployConfigMongodbStandalone | DeployConfigMongodbReplicaset);
155
155
  /**
156
156
  * @deprecated use config with instanceConnectionName
157
157
  */
158
- declare type DeployConfigKubernetesValuesCloudSQLLegacy = {
158
+ type DeployConfigKubernetesValuesCloudSQLLegacy = {
159
159
  enabled: boolean;
160
160
  /**
161
161
  * @deprecated use config with instanceConnectionName
@@ -178,7 +178,7 @@ declare type DeployConfigKubernetesValuesCloudSQLLegacy = {
178
178
  */
179
179
  type?: "legacy";
180
180
  };
181
- export declare type DeployConfigKubernetesValuesCloudSQLUnmanaged = {
181
+ export type DeployConfigKubernetesValuesCloudSQLUnmanaged = {
182
182
  enabled: boolean;
183
183
  instanceConnectionName: string;
184
184
  /**
@@ -204,8 +204,8 @@ export declare type DeployConfigKubernetesValuesCloudSQLUnmanaged = {
204
204
  */
205
205
  dbBaseName?: string;
206
206
  };
207
- export declare type DeployConfigKubernetesValuesCloudSQL = DeployConfigKubernetesValuesCloudSQLLegacy | DeployConfigKubernetesValuesCloudSQLUnmanaged;
208
- export declare type DeployConfigKubernetesValues = AllowUnknownProps<{
207
+ export type DeployConfigKubernetesValuesCloudSQL = DeployConfigKubernetesValuesCloudSQLLegacy | DeployConfigKubernetesValuesCloudSQLUnmanaged;
208
+ export type DeployConfigKubernetesValues = AllowUnknownProps<{
209
209
  /**
210
210
  * enable cloudsql db. Currently you have to manually set it up
211
211
  */
@@ -331,7 +331,7 @@ export declare type DeployConfigKubernetesValues = AllowUnknownProps<{
331
331
  */
332
332
  secretsAsFile?: string[];
333
333
  }>;
334
- export declare type DeployConfigKubernetes = {
334
+ export type DeployConfigKubernetes = {
335
335
  type: "kubernetes";
336
336
  /**
337
337
  * cluster config to use.
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.contextIsStoppable = exports.getKubernetesNamespace = exports.getFullKubernetesClusterName = void 0;
5
7
  var types_1 = require("./types");
6
8
  var getFullKubernetesClusterName = function (cluster) {
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- export * from "./pipeline/";
1
+ export * from "./pipeline";
2
2
  export * from "./types";
3
3
  export * from "./rules";
4
4
  export * from "./runner";
5
5
  export * from "./config";
6
6
  export * from "./context";
7
7
  export * from "./build";
8
- export * from "./deploy";
8
+ export * from "./deploy";
9
+ export * from "./utils/writeFiles";
package/dist/index.js CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, {
6
- enumerable: true,
7
- get: function () {
8
- return m[k];
9
- }
10
- });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = {
8
+ enumerable: true,
9
+ get: function () {
10
+ return m[k];
11
+ }
12
+ };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
11
15
  } : function (o, m, k, k2) {
12
16
  if (k2 === undefined) k2 = k;
13
17
  o[k2] = m[k];
@@ -15,12 +19,15 @@ var __createBinding = this && this.__createBinding || (Object.create ? function
15
19
  var __exportStar = this && this.__exportStar || function (m, exports) {
16
20
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
21
  };
18
- exports.__esModule = true;
19
- __exportStar(require("./pipeline/"), exports);
22
+ Object.defineProperty(exports, "__esModule", {
23
+ value: true
24
+ });
25
+ __exportStar(require("./pipeline"), exports);
20
26
  __exportStar(require("./types"), exports);
21
27
  __exportStar(require("./rules"), exports);
22
28
  __exportStar(require("./runner"), exports);
23
29
  __exportStar(require("./config"), exports);
24
30
  __exportStar(require("./context"), exports);
25
31
  __exportStar(require("./build"), exports);
26
- __exportStar(require("./deploy"), exports);
32
+ __exportStar(require("./deploy"), exports);
33
+ __exportStar(require("./utils/writeFiles"), exports);
@@ -0,0 +1,2 @@
1
+ declare const ownPkg: any;
2
+ export default ownPkg;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ // we can't import the package.json directly, because the bundling process will inline it
4
+ // but the version is only set during deployement, when its already bundled
5
+ // instead we need to use require.main.path to get the path of the main module, which is actually the file in the bin
6
+ // this will point to the root package.json
7
+ var _a;
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
11
+ var path = ((_a = require.main) === null || _a === void 0 ? void 0 : _a.path) + "/../package.json";
12
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
13
+ var ownPkg = require(path);
14
+ exports.default = ownPkg;
@@ -1,8 +1,16 @@
1
- import type { Config, PipelineTrigger } from "../types";
2
- import type { CatladderJob } from "../types/jobs";
3
- export declare type AllCatladderJobs = {
1
+ import type { CatladderJobWithContext, Config, PipelineTrigger, PipelineType } from "../types";
2
+ export type AllCatladderJobs = {
4
3
  [componentName: string]: {
5
- [env: string]: Array<CatladderJob>;
4
+ [env: string]: Array<CatladderJobWithContext>;
6
5
  };
7
6
  };
8
- export declare const createAllJobs: (config: Config, trigger: PipelineTrigger) => Promise<AllCatladderJobs>;
7
+ export type AllJobsContext = {
8
+ config: Config;
9
+ trigger: PipelineTrigger;
10
+ pipelineType: PipelineType;
11
+ };
12
+ export declare const createAllJobs: ({
13
+ config,
14
+ trigger,
15
+ pipelineType
16
+ }: AllJobsContext) => Promise<AllCatladderJobs>;
@@ -55,7 +55,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
55
55
  }
56
56
  function step(op) {
57
57
  if (f) throw new TypeError("Generator is already executing.");
58
- while (_) try {
58
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
59
59
  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;
60
60
  if (y = 0, t) op = [op[0] & 2, t.value];
61
61
  switch (op[0]) {
@@ -115,17 +115,22 @@ var __generator = this && this.__generator || function (thisArg, body) {
115
115
  };
116
116
  }
117
117
  };
118
- exports.__esModule = true;
118
+ Object.defineProperty(exports, "__esModule", {
119
+ value: true
120
+ });
119
121
  exports.createAllJobs = void 0;
120
122
  var config_1 = require("../config");
121
123
  var createJobsForComponent_1 = require("./createJobsForComponent");
122
- var createAllJobs = function (config, trigger) {
123
- return __awaiter(void 0, void 0, void 0, function () {
124
- var _a, _b;
125
- return __generator(this, function (_c) {
126
- switch (_c.label) {
124
+ var createAllJobs = function (_a) {
125
+ return __awaiter(void 0, [_a], void 0, function (_b) {
126
+ var _c, _d;
127
+ var config = _b.config,
128
+ trigger = _b.trigger,
129
+ pipelineType = _b.pipelineType;
130
+ return __generator(this, function (_e) {
131
+ switch (_e.label) {
127
132
  case 0:
128
- _b = (_a = Object).fromEntries;
133
+ _d = (_c = Object).fromEntries;
129
134
  return [4 /*yield*/, Promise.all(Object.keys(config.components).map(function (componentName) {
130
135
  return __awaiter(void 0, void 0, void 0, function () {
131
136
  var envs, _a, _b, _c;
@@ -142,7 +147,13 @@ var createAllJobs = function (config, trigger) {
142
147
  switch (_b.label) {
143
148
  case 0:
144
149
  _a = [env];
145
- return [4 /*yield*/, (0, createJobsForComponent_1.createJobsForComponent)(config, componentName, env, trigger)];
150
+ return [4 /*yield*/, (0, createJobsForComponent_1.createJobsForComponent)({
151
+ config: config,
152
+ componentName: componentName,
153
+ env: env,
154
+ trigger: trigger,
155
+ pipelineType: pipelineType
156
+ })];
146
157
  case 1:
147
158
  return [2 /*return*/, _a.concat([_b.sent()])];
148
159
  }
@@ -156,7 +167,7 @@ var createAllJobs = function (config, trigger) {
156
167
  });
157
168
  }))];
158
169
  case 1:
159
- return [2 /*return*/, _b.apply(_a, [_c.sent()])];
170
+ return [2 /*return*/, _d.apply(_c, [_e.sent()])];
160
171
  }
161
172
  });
162
173
  });
@@ -1,3 +1,3 @@
1
1
  import type { Pipeline } from "../types";
2
2
  import type { Config, PipelineTrigger } from "../types/config";
3
- export declare const createChildPipeline: <T extends "gitlab">(type: T, trigger: PipelineTrigger, config: Config) => Promise<Pipeline<T>>;
3
+ export declare const createChildPipeline: <T extends "gitlab">(pipelineType: T, trigger: PipelineTrigger, config: Config) => Promise<Pipeline<T>>;