@catladder/pipeline 2.10.1 → 2.10.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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createYamlLocalPipeline } from "./__utils__/helpers";
|
|
2
|
+
import config from "./override-secrets";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This test is auto-generated.
|
|
6
|
+
* Modifications will be overwritten on every `yarn test` run!
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
it("matches snapshot for override-secrets local pipeline YAML", async () => {
|
|
10
|
+
expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
|
|
11
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Config } from "../src";
|
|
2
|
+
|
|
3
|
+
const config: Config = {
|
|
4
|
+
appName: "test-app",
|
|
5
|
+
customerName: "pan",
|
|
6
|
+
components: {
|
|
7
|
+
["my-app"]: {
|
|
8
|
+
dir: "app",
|
|
9
|
+
build: {
|
|
10
|
+
type: "node",
|
|
11
|
+
},
|
|
12
|
+
vars: {
|
|
13
|
+
secret: ["MY_SECRET"],
|
|
14
|
+
},
|
|
15
|
+
deploy: {
|
|
16
|
+
type: "google-cloudrun",
|
|
17
|
+
projectId: "my-project-id",
|
|
18
|
+
region: "europe-west6",
|
|
19
|
+
},
|
|
20
|
+
env: {
|
|
21
|
+
local: {
|
|
22
|
+
vars: {
|
|
23
|
+
secret: ["MY_LOCAL_SECRET"],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
review: {
|
|
27
|
+
vars: {
|
|
28
|
+
secret: ["MY_REVIEW_SECRET"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default config;
|
|
37
|
+
|
|
38
|
+
export const information = {
|
|
39
|
+
title: "Multiline Environment Variables",
|
|
40
|
+
};
|