@catladder/pipeline 3.29.1 → 3.30.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.
Files changed (160) hide show
  1. package/dist/build/rails/index.js +2 -2
  2. package/dist/constants.js +1 -1
  3. package/dist/deploy/cloudRun/createJobs/execute/onDeploy.js +22 -14
  4. package/dist/deploy/types/executeBase.d.ts +24 -0
  5. package/dist/deploy/types/executeBase.js +5 -0
  6. package/dist/deploy/types/googleCloudRun.d.ts +5 -4
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/examples/__snapshots__/automatic-releases.test.ts.snap +1 -1
  9. package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +1618 -0
  10. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +1 -1
  11. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +1 -1
  12. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +1 -1
  13. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +1 -1
  14. package/examples/__snapshots__/cloud-run-llama.test.ts.snap +1 -1
  15. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +1 -1
  16. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +1 -1
  17. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +1 -1
  18. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +1 -1
  19. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +1 -1
  20. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +1 -1
  21. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +1 -1
  22. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +1 -1
  23. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +1 -1
  24. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +1 -1
  25. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +1 -1
  26. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +1 -1
  27. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +1 -1
  28. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +1 -1
  29. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +1 -1
  30. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +1 -1
  31. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +1 -1
  32. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +1 -1
  33. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +1 -1
  34. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +1 -1
  35. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +1 -1
  36. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +1 -1
  37. package/examples/__snapshots__/custom-build-job.test.ts.snap +1 -1
  38. package/examples/__snapshots__/custom-deploy.test.ts.snap +1 -1
  39. package/examples/__snapshots__/custom-envs.test.ts.snap +1 -1
  40. package/examples/__snapshots__/custom-sbom-java.test.ts.snap +1 -1
  41. package/examples/__snapshots__/custom-verify-job.test.ts.snap +1 -1
  42. package/examples/__snapshots__/git-submodule.test.ts.snap +1 -1
  43. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +1 -1
  44. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +1 -1
  45. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +1 -1
  46. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +1 -1
  47. package/examples/__snapshots__/local-dot-env.test.ts.snap +1 -1
  48. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +1 -1
  49. package/examples/__snapshots__/modify-generated-files.test.ts.snap +1 -1
  50. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +1 -1
  51. package/examples/__snapshots__/multiline-var.test.ts.snap +1 -1
  52. package/examples/__snapshots__/native-app.test.ts.snap +1 -1
  53. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +1 -1
  54. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +1 -1
  55. package/examples/__snapshots__/override-secrets.test.ts.snap +1 -1
  56. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +1 -1
  57. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +1 -1
  58. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +1 -1
  59. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +1 -1
  60. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +1 -1
  61. package/examples/__snapshots__/workspace-api-www.test.ts.snap +1 -1
  62. package/examples/automatic-releases.test.ts +1 -0
  63. package/examples/cloud-run-execute-script-on-deploy.test.ts +12 -0
  64. package/examples/cloud-run-execute-script-on-deploy.ts +47 -0
  65. package/examples/cloud-run-health-check-defaults.test.ts +1 -0
  66. package/examples/cloud-run-health-check-only-startup.test.ts +1 -0
  67. package/examples/cloud-run-health-check.test.ts +1 -0
  68. package/examples/cloud-run-http2.test.ts +1 -0
  69. package/examples/cloud-run-llama.test.ts +1 -0
  70. package/examples/cloud-run-memory-limit.test.ts +1 -0
  71. package/examples/cloud-run-meteor-with-worker.test.ts +1 -0
  72. package/examples/cloud-run-nextjs.test.ts +1 -0
  73. package/examples/cloud-run-no-cpu-throttling.test.ts +1 -0
  74. package/examples/cloud-run-no-service.test.ts +1 -0
  75. package/examples/cloud-run-non-public.test.ts +1 -0
  76. package/examples/cloud-run-post-stop-job.test.ts +1 -0
  77. package/examples/cloud-run-service-custom-vpc-connector.test.ts +1 -0
  78. package/examples/cloud-run-service-custom-vpc.test.ts +1 -0
  79. package/examples/cloud-run-service-gen2.test.ts +1 -0
  80. package/examples/cloud-run-service-increase-timout.test.ts +1 -0
  81. package/examples/cloud-run-service-with-volumes.test.ts +1 -0
  82. package/examples/cloud-run-storybook.test.ts +1 -0
  83. package/examples/cloud-run-with-agents.test.ts +1 -0
  84. package/examples/cloud-run-with-gpu.test.ts +1 -0
  85. package/examples/cloud-run-with-ngnix.test.ts +1 -0
  86. package/examples/cloud-run-with-sql-legacy-jobs.test.ts +1 -0
  87. package/examples/cloud-run-with-sql-multiple-dbs.test.ts +1 -0
  88. package/examples/cloud-run-with-sql-reuse-db.test.ts +1 -0
  89. package/examples/cloud-run-with-sql.test.ts +1 -0
  90. package/examples/cloud-run-with-worker.test.ts +1 -0
  91. package/examples/custom-build-job-with-tests.test.ts +1 -0
  92. package/examples/custom-build-job.test.ts +1 -0
  93. package/examples/custom-deploy.test.ts +1 -0
  94. package/examples/custom-envs.test.ts +1 -0
  95. package/examples/custom-sbom-java.test.ts +1 -0
  96. package/examples/custom-verify-job.test.ts +1 -0
  97. package/examples/git-submodule.test.ts +1 -0
  98. package/examples/kubernetes-application-customization.test.ts +1 -0
  99. package/examples/kubernetes-with-cloud-sql.test.ts +1 -0
  100. package/examples/kubernetes-with-jobs.test.ts +1 -0
  101. package/examples/kubernetes-with-mongodb.test.ts +1 -0
  102. package/examples/local-dot-env.test.ts +1 -0
  103. package/examples/meteor-kubernetes.test.ts +1 -0
  104. package/examples/modify-generated-files.test.ts +1 -0
  105. package/examples/modify-generated-yaml.test.ts +1 -0
  106. package/examples/multiline-var.test.ts +1 -0
  107. package/examples/native-app.test.ts +1 -0
  108. package/examples/node-build-with-custom-image.test.ts +1 -0
  109. package/examples/node-build-with-docker-additions.test.ts +1 -0
  110. package/examples/override-secrets.test.ts +1 -0
  111. package/examples/rails-k8s-with-worker.test.ts +1 -0
  112. package/examples/referencing-other-vars.test.ts +1 -0
  113. package/examples/wait-for-other-deploy.test.ts +1 -0
  114. package/examples/workspace-api-www-turbo-cache.test.ts +1 -0
  115. package/examples/workspace-api-www.test.ts +1 -0
  116. package/package.json +1 -3
  117. package/scripts/generate-examples-test.ts +1 -0
  118. package/src/build/base/__tests__/__snapshots__/createArtifactsConfig.test.ts.snap +4 -4
  119. package/src/build/base/__tests__/createArtifactsConfig.test.ts +1 -0
  120. package/src/build/custom/__tests__/testJob.test.ts +1 -0
  121. package/src/build/rails/index.ts +1 -1
  122. package/src/config/__tests__/__snapshots__/getAllEnvs.test.ts.snap +4 -4
  123. package/src/config/__tests__/__snapshots__/getAllEnvsInAllComponents.test.ts.snap +2 -2
  124. package/src/config/__tests__/configruedEnvs.test.ts +1 -0
  125. package/src/config/__tests__/getAllEnvs.test.ts +1 -0
  126. package/src/config/__tests__/getAllEnvsInAllComponents.test.ts +1 -0
  127. package/src/deploy/cloudRun/createJobs/execute/onDeploy.ts +31 -24
  128. package/src/deploy/types/base.ts +1 -0
  129. package/src/deploy/types/executeBase.ts +27 -0
  130. package/src/deploy/types/googleCloudRun.ts +8 -2
  131. package/src/pipeline/__tests__/__snapshots__/getPipelineStages.test.ts.snap +2 -2
  132. package/src/pipeline/__tests__/getPipelineStages.test.ts +1 -0
  133. package/src/variables/__tests__/resolveAllReferences.test.ts +1 -0
  134. package/src/variables/__tests__/resolveAllReferencesOnce.test.ts +1 -0
  135. package/src/variables/__tests__/resolveReferencesOnce.test.ts +1 -0
  136. package/src/variables/__tests__/variableValue.test.ts +1 -0
  137. package/tsconfig.json +2 -1
  138. package/dist/build/base/__tests__/createArtifactsConfig.test.d.ts +0 -1
  139. package/dist/build/base/__tests__/createArtifactsConfig.test.js +0 -42
  140. package/dist/build/custom/__tests__/testJob.test.d.ts +0 -1
  141. package/dist/build/custom/__tests__/testJob.test.js +0 -36
  142. package/dist/config/__tests__/configruedEnvs.test.d.ts +0 -1
  143. package/dist/config/__tests__/configruedEnvs.test.js +0 -112
  144. package/dist/config/__tests__/getAllEnvs.test.d.ts +0 -1
  145. package/dist/config/__tests__/getAllEnvs.test.js +0 -79
  146. package/dist/config/__tests__/getAllEnvsInAllComponents.test.d.ts +0 -1
  147. package/dist/config/__tests__/getAllEnvsInAllComponents.test.js +0 -73
  148. package/dist/pipeline/__tests__/getPipelineStages.test.d.ts +0 -1
  149. package/dist/pipeline/__tests__/getPipelineStages.test.js +0 -73
  150. package/dist/variables/__tests__/resolveAllReferences.test.d.ts +0 -1
  151. package/dist/variables/__tests__/resolveAllReferences.test.js +0 -218
  152. package/dist/variables/__tests__/resolveAllReferencesOnce.test.d.ts +0 -1
  153. package/dist/variables/__tests__/resolveAllReferencesOnce.test.js +0 -171
  154. package/dist/variables/__tests__/resolveReferencesOnce.test.d.ts +0 -1
  155. package/dist/variables/__tests__/resolveReferencesOnce.test.js +0 -199
  156. package/dist/variables/__tests__/variableValue.test.d.ts +0 -1
  157. package/dist/variables/__tests__/variableValue.test.js +0 -36
  158. /package/dist/build/rails/{test.d.ts → testJob.d.ts} +0 -0
  159. /package/dist/build/rails/{test.js → testJob.js} +0 -0
  160. /package/src/build/rails/{test.ts → testJob.ts} +0 -0
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-health-check-defaults local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-health-check-only-startup local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-health-check local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-http2 local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-llama local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-memory-limit local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-meteor-with-worker local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-nextjs local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-no-cpu-throttling local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-no-service local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-non-public local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-post-stop-job local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-service-custom-vpc-connector local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-service-custom-vpc local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-service-gen2 local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-service-increase-timout local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-service-with-volumes local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-storybook local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-agents local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-gpu local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-ngnix local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-sql-legacy-jobs local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-sql-multiple-dbs local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-sql-reuse-db local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-sql local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for cloud-run-with-worker local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for custom-build-job-with-tests local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for custom-build-job local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for custom-deploy local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for custom-envs local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for custom-sbom-java local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for custom-verify-job local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for git-submodule local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for kubernetes-application-customization local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for kubernetes-with-cloud-sql local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for kubernetes-with-jobs local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for kubernetes-with-mongodb local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for local-dot-env local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for meteor-kubernetes local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for modify-generated-files local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for modify-generated-yaml local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for multiline-var local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for native-app local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for node-build-with-custom-image local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for node-build-with-docker-additions local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for override-secrets local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot with a Dockerfile 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for rails-k8s-with-worker local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for referencing-other-vars local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for wait-for-other-deploy local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for workspace-api-www-turbo-cache local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`matches snapshot for workspace-api-www local pipeline YAML 1`] = `
4
4
  "image: path/to/docker/jobs-default:the-version
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./automatic-releases";
3
4
 
@@ -0,0 +1,12 @@
1
+ import { it, expect } from "vitest";
2
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
3
+ import config from "./cloud-run-execute-script-on-deploy";
4
+
5
+ /**
6
+ * This test is auto-generated.
7
+ * Modifications will be overwritten on every `yarn test` run!
8
+ */
9
+
10
+ it("matches snapshot for cloud-run-execute-script-on-deploy local pipeline YAML", async () => {
11
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
12
+ });
@@ -0,0 +1,47 @@
1
+ import type { Config } from "../src";
2
+
3
+ const config = {
4
+ appName: "test-app",
5
+ customerName: "pan",
6
+ components: {
7
+ app: {
8
+ dir: "app",
9
+ build: {
10
+ type: "node",
11
+ },
12
+ deploy: {
13
+ type: "google-cloudrun",
14
+ projectId: "google-project-id",
15
+ region: "europe-west6",
16
+ execute: {
17
+ "pre-deploy-script": {
18
+ type: "script",
19
+ script: ["echo 'deploying'"],
20
+ when: "preDeploy",
21
+ },
22
+ "post-deploy-script": {
23
+ type: "script",
24
+ script: ["echo 'deployed'"],
25
+ when: "postDeploy",
26
+ },
27
+ "pre-stop-script": {
28
+ type: "script",
29
+ script: ["echo 'stopping'"],
30
+ when: "preStop",
31
+ },
32
+ "post-stop-script": {
33
+ type: "script",
34
+ script: ["echo 'stopped'"],
35
+ when: "postStop",
36
+ },
37
+ },
38
+ },
39
+ },
40
+ },
41
+ } satisfies Config;
42
+
43
+ export default config;
44
+
45
+ export const information = {
46
+ title: "Cloud Run: Execute script on deploy",
47
+ };
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-health-check-defaults";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-health-check-only-startup";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-health-check";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-http2";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-llama";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-memory-limit";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-meteor-with-worker";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-nextjs";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-no-cpu-throttling";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-no-service";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-non-public";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-post-stop-job";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-service-custom-vpc-connector";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-service-custom-vpc";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-service-gen2";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-service-increase-timout";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-service-with-volumes";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-storybook";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-with-agents";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-with-gpu";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-with-ngnix";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-with-sql-legacy-jobs";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-with-sql-multiple-dbs";
3
4
 
@@ -1,3 +1,4 @@
1
+ import { it, expect } from "vitest";
1
2
  import { createYamlLocalPipeline } from "./__utils__/helpers";
2
3
  import config from "./cloud-run-with-sql-reuse-db";
3
4