@catladder/pipeline 1.168.4 → 1.170.0

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 (53) hide show
  1. package/dist/bash/replaceAsync.js +4 -3
  2. package/dist/build/docker.js +1 -1
  3. package/dist/bundles/catladder-gitlab/index.js +1 -1
  4. package/dist/constants.js +1 -1
  5. package/dist/deploy/cloudRun/createJobs/cloudRunServices.js +2 -0
  6. package/dist/deploy/types/googleCloudRun.d.ts +7 -2
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +4 -0
  9. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +4 -0
  10. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +4 -0
  11. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +4 -0
  12. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +4 -0
  13. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +4 -0
  14. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +4 -0
  15. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +1346 -0
  16. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +8 -4
  17. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +4 -0
  18. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +4 -0
  19. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +4 -0
  20. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +4 -0
  21. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +4 -0
  22. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +8 -0
  23. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +4 -0
  24. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +4 -0
  25. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +4 -0
  26. package/examples/__snapshots__/custom-build-job.test.ts.snap +4 -0
  27. package/examples/__snapshots__/custom-deploy.test.ts.snap +4 -0
  28. package/examples/__snapshots__/custom-sbom-java.test.ts.snap +4 -0
  29. package/examples/__snapshots__/git-submodule.test.ts.snap +4 -0
  30. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +4 -0
  31. package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.test.ts.snap +4 -0
  32. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +4 -0
  33. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +8 -0
  34. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +4 -0
  35. package/examples/__snapshots__/local-dot-env.test.ts.snap +4 -0
  36. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +4 -0
  37. package/examples/__snapshots__/multiline-var.test.ts.snap +2942 -1020
  38. package/examples/__snapshots__/native-app.test.ts.snap +4 -0
  39. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +4 -0
  40. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +4 -0
  41. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +4 -0
  42. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +4 -0
  43. package/examples/__snapshots__/workspace-api-www-custom-cache.test.ts.snap +8 -0
  44. package/examples/__snapshots__/workspace-api-www.test.ts.snap +8 -0
  45. package/examples/cloud-run-service-custom-vpc-connector.test.ts +11 -0
  46. package/examples/cloud-run-service-custom-vpc-connector.ts +30 -0
  47. package/examples/cloud-run-service-custom-vpc.ts +2 -1
  48. package/examples/multiline-var.ts +57 -15
  49. package/package.json +1 -1
  50. package/src/bash/replaceAsync.ts +7 -3
  51. package/src/build/docker.ts +1 -1
  52. package/src/deploy/cloudRun/createJobs/cloudRunServices.ts +2 -0
  53. package/src/deploy/types/googleCloudRun.ts +10 -2
@@ -1044,6 +1044,7 @@ api 🧪 test:
1044
1044
  - name: docker:24.0.6-dind
1045
1045
  command:
1046
1046
  - --tls=false
1047
+ - --registry-mirror=https://mirror.gcr.io
1047
1048
  variables:
1048
1049
  DOCKER_HOST: tcp://0.0.0.0:2375
1049
1050
  DOCKER_TLS_CERTDIR: ''
@@ -1339,6 +1340,7 @@ api 🧪 test:
1339
1340
  - name: docker:24.0.6-dind
1340
1341
  command:
1341
1342
  - --tls=false
1343
+ - --registry-mirror=https://mirror.gcr.io
1342
1344
  variables:
1343
1345
  DOCKER_HOST: tcp://0.0.0.0:2375
1344
1346
  DOCKER_TLS_CERTDIR: ''
@@ -1632,6 +1634,7 @@ api 🧪 test:
1632
1634
  - name: docker:24.0.6-dind
1633
1635
  command:
1634
1636
  - --tls=false
1637
+ - --registry-mirror=https://mirror.gcr.io
1635
1638
  variables:
1636
1639
  DOCKER_HOST: tcp://0.0.0.0:2375
1637
1640
  DOCKER_TLS_CERTDIR: ''
@@ -1912,6 +1915,7 @@ api 🧪 test:
1912
1915
  - name: docker:24.0.6-dind
1913
1916
  command:
1914
1917
  - --tls=false
1918
+ - --registry-mirror=https://mirror.gcr.io
1915
1919
  variables:
1916
1920
  DOCKER_HOST: tcp://0.0.0.0:2375
1917
1921
  DOCKER_TLS_CERTDIR: ''
@@ -228,6 +228,7 @@ www 🧪 test:
228
228
  - name: docker:24.0.6-dind
229
229
  command:
230
230
  - --tls=false
231
+ - --registry-mirror=https://mirror.gcr.io
231
232
  variables:
232
233
  DOCKER_HOST: tcp://0.0.0.0:2375
233
234
  DOCKER_TLS_CERTDIR: ''
@@ -523,6 +524,7 @@ www 🧪 test:
523
524
  - name: docker:24.0.6-dind
524
525
  command:
525
526
  - --tls=false
527
+ - --registry-mirror=https://mirror.gcr.io
526
528
  variables:
527
529
  DOCKER_HOST: tcp://0.0.0.0:2375
528
530
  DOCKER_TLS_CERTDIR: ''
@@ -816,6 +818,7 @@ www 🧪 test:
816
818
  - name: docker:24.0.6-dind
817
819
  command:
818
820
  - --tls=false
821
+ - --registry-mirror=https://mirror.gcr.io
819
822
  variables:
820
823
  DOCKER_HOST: tcp://0.0.0.0:2375
821
824
  DOCKER_TLS_CERTDIR: ''
@@ -1096,6 +1099,7 @@ www 🧪 test:
1096
1099
  - name: docker:24.0.6-dind
1097
1100
  command:
1098
1101
  - --tls=false
1102
+ - --registry-mirror=https://mirror.gcr.io
1099
1103
  variables:
1100
1104
  DOCKER_HOST: tcp://0.0.0.0:2375
1101
1105
  DOCKER_TLS_CERTDIR: ''
@@ -228,6 +228,7 @@ www 🧪 test:
228
228
  - name: docker:24.0.6-dind
229
229
  command:
230
230
  - --tls=false
231
+ - --registry-mirror=https://mirror.gcr.io
231
232
  variables:
232
233
  DOCKER_HOST: tcp://0.0.0.0:2375
233
234
  DOCKER_TLS_CERTDIR: ''
@@ -525,6 +526,7 @@ www 🧪 test:
525
526
  - name: docker:24.0.6-dind
526
527
  command:
527
528
  - --tls=false
529
+ - --registry-mirror=https://mirror.gcr.io
528
530
  variables:
529
531
  DOCKER_HOST: tcp://0.0.0.0:2375
530
532
  DOCKER_TLS_CERTDIR: ''
@@ -820,6 +822,7 @@ www 🧪 test:
820
822
  - name: docker:24.0.6-dind
821
823
  command:
822
824
  - --tls=false
825
+ - --registry-mirror=https://mirror.gcr.io
823
826
  variables:
824
827
  DOCKER_HOST: tcp://0.0.0.0:2375
825
828
  DOCKER_TLS_CERTDIR: ''
@@ -1102,6 +1105,7 @@ www 🧪 test:
1102
1105
  - name: docker:24.0.6-dind
1103
1106
  command:
1104
1107
  - --tls=false
1108
+ - --registry-mirror=https://mirror.gcr.io
1105
1109
  variables:
1106
1110
  DOCKER_HOST: tcp://0.0.0.0:2375
1107
1111
  DOCKER_TLS_CERTDIR: ''
@@ -121,6 +121,7 @@ app 🧪 test:
121
121
  - name: docker:24.0.6-dind
122
122
  command:
123
123
  - --tls=false
124
+ - --registry-mirror=https://mirror.gcr.io
124
125
  variables:
125
126
  DOCKER_HOST: tcp://0.0.0.0:2375
126
127
  DOCKER_TLS_CERTDIR: ''
@@ -464,6 +465,7 @@ app 🧪 test:
464
465
  - name: docker:24.0.6-dind
465
466
  command:
466
467
  - --tls=false
468
+ - --registry-mirror=https://mirror.gcr.io
467
469
  variables:
468
470
  DOCKER_HOST: tcp://0.0.0.0:2375
469
471
  DOCKER_TLS_CERTDIR: ''
@@ -803,6 +805,7 @@ app 🧪 test:
803
805
  - name: docker:24.0.6-dind
804
806
  command:
805
807
  - --tls=false
808
+ - --registry-mirror=https://mirror.gcr.io
806
809
  variables:
807
810
  DOCKER_HOST: tcp://0.0.0.0:2375
808
811
  DOCKER_TLS_CERTDIR: ''
@@ -1129,6 +1132,7 @@ app 🧪 test:
1129
1132
  - name: docker:24.0.6-dind
1130
1133
  command:
1131
1134
  - --tls=false
1135
+ - --registry-mirror=https://mirror.gcr.io
1132
1136
  variables:
1133
1137
  DOCKER_HOST: tcp://0.0.0.0:2375
1134
1138
  DOCKER_TLS_CERTDIR: ''
@@ -121,6 +121,7 @@ app 🧪 test:
121
121
  - name: docker:24.0.6-dind
122
122
  command:
123
123
  - --tls=false
124
+ - --registry-mirror=https://mirror.gcr.io
124
125
  variables:
125
126
  DOCKER_HOST: tcp://0.0.0.0:2375
126
127
  DOCKER_TLS_CERTDIR: ''
@@ -460,6 +461,7 @@ app 🧪 test:
460
461
  - name: docker:24.0.6-dind
461
462
  command:
462
463
  - --tls=false
464
+ - --registry-mirror=https://mirror.gcr.io
463
465
  variables:
464
466
  DOCKER_HOST: tcp://0.0.0.0:2375
465
467
  DOCKER_TLS_CERTDIR: ''
@@ -795,6 +797,7 @@ app 🧪 test:
795
797
  - name: docker:24.0.6-dind
796
798
  command:
797
799
  - --tls=false
800
+ - --registry-mirror=https://mirror.gcr.io
798
801
  variables:
799
802
  DOCKER_HOST: tcp://0.0.0.0:2375
800
803
  DOCKER_TLS_CERTDIR: ''
@@ -1117,6 +1120,7 @@ app 🧪 test:
1117
1120
  - name: docker:24.0.6-dind
1118
1121
  command:
1119
1122
  - --tls=false
1123
+ - --registry-mirror=https://mirror.gcr.io
1120
1124
  variables:
1121
1125
  DOCKER_HOST: tcp://0.0.0.0:2375
1122
1126
  DOCKER_TLS_CERTDIR: ''
@@ -570,6 +570,7 @@ variables:
570
570
  - name: docker:24.0.6-dind
571
571
  command:
572
572
  - --tls=false
573
+ - --registry-mirror=https://mirror.gcr.io
573
574
  variables:
574
575
  DOCKER_HOST: tcp://0.0.0.0:2375
575
576
  DOCKER_TLS_CERTDIR: ''
@@ -798,6 +799,7 @@ variables:
798
799
  - name: docker:24.0.6-dind
799
800
  command:
800
801
  - --tls=false
802
+ - --registry-mirror=https://mirror.gcr.io
801
803
  variables:
802
804
  DOCKER_HOST: tcp://0.0.0.0:2375
803
805
  DOCKER_TLS_CERTDIR: ''
@@ -1024,6 +1026,7 @@ variables:
1024
1026
  - name: docker:24.0.6-dind
1025
1027
  command:
1026
1028
  - --tls=false
1029
+ - --registry-mirror=https://mirror.gcr.io
1027
1030
  variables:
1028
1031
  DOCKER_HOST: tcp://0.0.0.0:2375
1029
1032
  DOCKER_TLS_CERTDIR: ''
@@ -1237,6 +1240,7 @@ variables:
1237
1240
  - name: docker:24.0.6-dind
1238
1241
  command:
1239
1242
  - --tls=false
1243
+ - --registry-mirror=https://mirror.gcr.io
1240
1244
  variables:
1241
1245
  DOCKER_HOST: tcp://0.0.0.0:2375
1242
1246
  DOCKER_TLS_CERTDIR: ''
@@ -1450,6 +1454,7 @@ variables:
1450
1454
  - name: docker:24.0.6-dind
1451
1455
  command:
1452
1456
  - --tls=false
1457
+ - --registry-mirror=https://mirror.gcr.io
1453
1458
  variables:
1454
1459
  DOCKER_HOST: tcp://0.0.0.0:2375
1455
1460
  DOCKER_TLS_CERTDIR: ''
@@ -1681,6 +1686,7 @@ variables:
1681
1686
  - name: docker:24.0.6-dind
1682
1687
  command:
1683
1688
  - --tls=false
1689
+ - --registry-mirror=https://mirror.gcr.io
1684
1690
  variables:
1685
1691
  DOCKER_HOST: tcp://0.0.0.0:2375
1686
1692
  DOCKER_TLS_CERTDIR: ''
@@ -1910,6 +1916,7 @@ variables:
1910
1916
  - name: docker:24.0.6-dind
1911
1917
  command:
1912
1918
  - --tls=false
1919
+ - --registry-mirror=https://mirror.gcr.io
1913
1920
  variables:
1914
1921
  DOCKER_HOST: tcp://0.0.0.0:2375
1915
1922
  DOCKER_TLS_CERTDIR: ''
@@ -2126,6 +2133,7 @@ variables:
2126
2133
  - name: docker:24.0.6-dind
2127
2134
  command:
2128
2135
  - --tls=false
2136
+ - --registry-mirror=https://mirror.gcr.io
2129
2137
  variables:
2130
2138
  DOCKER_HOST: tcp://0.0.0.0:2375
2131
2139
  DOCKER_TLS_CERTDIR: ''
@@ -550,6 +550,7 @@ variables:
550
550
  - name: docker:24.0.6-dind
551
551
  command:
552
552
  - --tls=false
553
+ - --registry-mirror=https://mirror.gcr.io
553
554
  variables:
554
555
  DOCKER_HOST: tcp://0.0.0.0:2375
555
556
  DOCKER_TLS_CERTDIR: ''
@@ -778,6 +779,7 @@ variables:
778
779
  - name: docker:24.0.6-dind
779
780
  command:
780
781
  - --tls=false
782
+ - --registry-mirror=https://mirror.gcr.io
781
783
  variables:
782
784
  DOCKER_HOST: tcp://0.0.0.0:2375
783
785
  DOCKER_TLS_CERTDIR: ''
@@ -1004,6 +1006,7 @@ variables:
1004
1006
  - name: docker:24.0.6-dind
1005
1007
  command:
1006
1008
  - --tls=false
1009
+ - --registry-mirror=https://mirror.gcr.io
1007
1010
  variables:
1008
1011
  DOCKER_HOST: tcp://0.0.0.0:2375
1009
1012
  DOCKER_TLS_CERTDIR: ''
@@ -1217,6 +1220,7 @@ variables:
1217
1220
  - name: docker:24.0.6-dind
1218
1221
  command:
1219
1222
  - --tls=false
1223
+ - --registry-mirror=https://mirror.gcr.io
1220
1224
  variables:
1221
1225
  DOCKER_HOST: tcp://0.0.0.0:2375
1222
1226
  DOCKER_TLS_CERTDIR: ''
@@ -1430,6 +1434,7 @@ variables:
1430
1434
  - name: docker:24.0.6-dind
1431
1435
  command:
1432
1436
  - --tls=false
1437
+ - --registry-mirror=https://mirror.gcr.io
1433
1438
  variables:
1434
1439
  DOCKER_HOST: tcp://0.0.0.0:2375
1435
1440
  DOCKER_TLS_CERTDIR: ''
@@ -1661,6 +1666,7 @@ variables:
1661
1666
  - name: docker:24.0.6-dind
1662
1667
  command:
1663
1668
  - --tls=false
1669
+ - --registry-mirror=https://mirror.gcr.io
1664
1670
  variables:
1665
1671
  DOCKER_HOST: tcp://0.0.0.0:2375
1666
1672
  DOCKER_TLS_CERTDIR: ''
@@ -1890,6 +1896,7 @@ variables:
1890
1896
  - name: docker:24.0.6-dind
1891
1897
  command:
1892
1898
  - --tls=false
1899
+ - --registry-mirror=https://mirror.gcr.io
1893
1900
  variables:
1894
1901
  DOCKER_HOST: tcp://0.0.0.0:2375
1895
1902
  DOCKER_TLS_CERTDIR: ''
@@ -2106,6 +2113,7 @@ variables:
2106
2113
  - name: docker:24.0.6-dind
2107
2114
  command:
2108
2115
  - --tls=false
2116
+ - --registry-mirror=https://mirror.gcr.io
2109
2117
  variables:
2110
2118
  DOCKER_HOST: tcp://0.0.0.0:2375
2111
2119
  DOCKER_TLS_CERTDIR: ''
@@ -0,0 +1,11 @@
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
+ import config from "./cloud-run-service-custom-vpc-connector";
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 cloud-run-service-custom-vpc-connector local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
11
+ });
@@ -0,0 +1,30 @@
1
+ import type { Config } from "../src";
2
+
3
+ const config: Config = {
4
+ appName: "test-app",
5
+ customerName: "pan",
6
+ components: {
7
+ api: {
8
+ dir: "api",
9
+ build: {
10
+ type: "node",
11
+ },
12
+ deploy: {
13
+ type: "google-cloudrun",
14
+ projectId: "google-project-id",
15
+ region: "europe-west6",
16
+
17
+ service: {
18
+ vpcConnector: "my-first-vpc-connector",
19
+ vpcEgress: "all-traffic",
20
+ },
21
+ },
22
+ },
23
+ },
24
+ };
25
+
26
+ export default config;
27
+
28
+ export const information = {
29
+ title: "Cloud Run: Service with custom vpc settings",
30
+ };
@@ -15,7 +15,8 @@ const config: Config = {
15
15
  region: "europe-west6",
16
16
 
17
17
  service: {
18
- vpcConnector: "my-first-vpc-connector",
18
+ network: "my-network",
19
+ subnet: "my-subnet",
19
20
  vpcEgress: "all-traffic",
20
21
  },
21
22
  },
@@ -4,20 +4,54 @@ const config: Config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
7
- api: {
8
- dir: "api",
7
+ app1: {
8
+ dir: "app1",
9
9
  build: {
10
10
  type: "node",
11
11
  },
12
12
  vars: {
13
13
  public: {
14
14
  foo: "foo-value",
15
- multiline: `line1
16
- line2
17
- line3
15
+ multiline: `app1 line1
16
+ app1 line2
17
+ app1 line3
18
18
 
19
- single quote: '
20
- doouble quote: "
19
+ the url of self: "\${ROOT_URL}"
20
+
21
+
22
+ app1 single quote: '
23
+ app1 doouble quote: "
24
+ `,
25
+ },
26
+ },
27
+ deploy: {
28
+ type: "google-cloudrun",
29
+ projectId: "asdf",
30
+ region: "asia-east1",
31
+ },
32
+ },
33
+ app2: {
34
+ dir: "app2",
35
+ build: {
36
+ type: "node",
37
+ },
38
+ vars: {
39
+ public: {
40
+ foo: "foo-value",
41
+ multiline: `app2 yeah
42
+ app2 yeah2
43
+ app2 yeah3
44
+
45
+ app2 single quote: '
46
+ app2 doouble quote: "
47
+
48
+ the url of self: "\${ROOT_URL}"
49
+ the url of app1: "\${app1:ROOT_URL}"
50
+
51
+ value from app1:
52
+ -------
53
+ \${multiline_from_app1}
54
+ --------
21
55
  `,
22
56
  },
23
57
  },
@@ -27,20 +61,28 @@ doouble quote: "
27
61
  region: "asia-east1",
28
62
  },
29
63
  },
30
- api2: {
31
- dir: "api",
64
+ kube: {
65
+ dir: "kube",
32
66
  build: {
33
67
  type: "node",
34
68
  },
35
69
  vars: {
36
70
  public: {
37
- multiline_from_api: "${api:multiline}",
38
- multiline2: `yeah
39
- yeah2
40
- yeah3
71
+ multiline_from_app1: "${app1:multiline}",
72
+ multiline: `kube yeah
73
+ kube yeah2
74
+ kube yeah3
75
+
76
+ kube single quote: '
77
+ kube doouble quote: "
78
+
79
+ the url of self: "\${ROOT_URL}"
80
+ the url of app1: "\${app1:ROOT_URL}"
41
81
 
42
- single quote: '
43
- doouble quote: "
82
+ value from app1:
83
+ -------
84
+ \${multiline_from_app1}
85
+ --------
44
86
  `,
45
87
  },
46
88
  },
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "1.168.4",
56
+ "version": "1.170.0",
57
57
  "scripts": {
58
58
  "build:tsc": "yarn tsc",
59
59
  "build": "yarn build:compile && yarn build:inline-variables && yarn build:bundle",
@@ -1,4 +1,4 @@
1
- import { BashExpression } from "./BashExpression";
1
+ import { BashExpression, bashEscape } from "./BashExpression";
2
2
 
3
3
  // from https://github.com/dsblv/string-replace-async/blob/main/index.js
4
4
  // and adjusted a bit
@@ -11,13 +11,17 @@ export default async function replaceAsync(
11
11
  ) => Promise<string | BashExpression>,
12
12
  ) {
13
13
  const wasBashExpression = string instanceof BashExpression;
14
+
15
+ const stringRepresentation = wasBashExpression
16
+ ? string.toString()
17
+ : bashEscape(string);
14
18
  try {
15
19
  // 1. Run fake pass of `replace`, collect values from `replacer` calls
16
20
  // 2. Resolve them with `Promise.all`
17
21
  // 3. Run `replace` with resolved values
18
22
  const values: Array<Promise<string | BashExpression>> = [];
19
23
  String.prototype.replace.call(
20
- string.toString(),
24
+ stringRepresentation,
21
25
  searchValue,
22
26
  function (...args) {
23
27
  // eslint-disable-next-line prefer-spread
@@ -33,7 +37,7 @@ export default async function replaceAsync(
33
37
  );
34
38
 
35
39
  const result = String.prototype.replace.call(
36
- string.toString(),
40
+ stringRepresentation,
37
41
  searchValue,
38
42
  function () {
39
43
  return resolvedValues.shift()?.toString() ?? "";
@@ -111,7 +111,7 @@ export const getDockerJobBaseProps = (): Pick<
111
111
  services: [
112
112
  {
113
113
  name: "docker:24.0.6-dind", // see see https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27300#note_466755332
114
- command: ["--tls=false"],
114
+ command: ["--tls=false", "--registry-mirror=https://mirror.gcr.io"],
115
115
  },
116
116
  ],
117
117
  variables: {},
@@ -52,6 +52,8 @@ export const getServiceDeployScript = (
52
52
  timeout: customConfig?.timeout,
53
53
  "vpc-connector": customConfig?.vpcConnector,
54
54
  "vpc-egress": customConfig?.vpcEgress,
55
+ network: customConfig?.network,
56
+ subnet: customConfig?.subnet,
55
57
  "use-http2": customConfig?.http2,
56
58
  "allow-unauthenticated": customConfig?.allowUnauthenticated ?? true,
57
59
  ingress: customConfig?.ingress ?? "all",
@@ -158,15 +158,23 @@ export type DeployConfigCloudRunService = {
158
158
  */
159
159
  executionEnvironment?: "gen2" | "gen1";
160
160
 
161
+ /* the vpc network, see https://cloud.google.com/sdk/gcloud/reference/run/deploy#--network */
162
+ network?: string;
163
+
161
164
  /**
162
- * vpc connector,
165
+ * vpc subnet to use, see https://cloud.google.com/sdk/gcloud/reference/run/deploy#--subnet
163
166
  */
164
- vpcConnector?: string;
167
+ subnet?: string;
165
168
  /**
166
169
  * vpc egress, see https://cloud.google.com/sdk/gcloud/reference/run/deploy#--vpc-egress
167
170
  */
168
171
  vpcEgress?: "all-traffic" | "private-ranges-only";
169
172
 
173
+ /**
174
+ * vpc connector
175
+ */
176
+ vpcConnector?: string;
177
+
170
178
  /**
171
179
  * Use http2 end-to-end. See https://cloud.google.com/run/docs/configuring/http2
172
180
  *