You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/configuration/dependencies/README.mdx
+28-40Lines changed: 28 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,37 +26,30 @@ Dependencies for DevSpace projects are defined within the `dependencies` section
26
26
27
27
```yaml
28
28
dependencies:
29
-
- name: api-server
30
-
source:
29
+
api-server:
31
30
git: https://github.com/my-api-server
32
31
branch: stable
33
-
dev:
34
-
ports: true
35
-
- name: auth-server
36
-
source:
32
+
pipeline: dev
33
+
auth-server:
37
34
git: https://github.com/my-auth-server
38
35
revision: c967392
39
-
profile: production
40
-
- name: database-server
41
-
source:
36
+
profile: production
37
+
database-server:
42
38
git: https://github.com/my-database-server
43
39
tag: v3.0.1
44
40
subPath: /configuration
45
-
vars:
46
-
- name: ROOT_PASSWORD
47
-
value: ${ROOT_PASSWORD}
41
+
vars:
42
+
ROOT_PASSWORD: ${ROOT_PASSWORD}
48
43
```
49
44
50
45
</TabItem>
51
46
<TabItem value="path">
52
47
53
48
```yaml
54
49
dependencies:
55
-
- name: component-1
56
-
source:
50
+
component-1:
57
51
path: ./component-1
58
-
- name: component-2
59
-
source:
52
+
component-2:
60
53
path: ./component-2
61
54
```
62
55
@@ -74,26 +67,23 @@ DevSpace is able to work with dependencies from the following sources:
74
67
Dependencies will be executed in the order that they are specified under `dependencies` and always before image building and deployments defined in the top-level `devspace.yaml`. `dev` configuration that should be reused from a dependency will be executed alongside regular `dev` configuration specified in the top-level `devspace.yaml` after the DevSpace deployment pipeline ran through. Example:
75
68
```yaml
76
69
dependencies:
77
-
- name: dep1
78
-
source:
70
+
dep1:
79
71
path: dep1
80
-
dev:
81
-
sync: true
82
-
- name: dep2
83
-
source:
72
+
pipeline: dev
73
+
dep2:
84
74
path: dep2
85
-
dev:
86
-
ports: true
75
+
pipeline: dev
87
76
images:
88
77
image1:
89
78
image: myimage/image
90
79
deployments:
91
-
- name: deployment1
92
-
helm:
93
-
...
80
+
deployment1:
81
+
helm:
82
+
...
94
83
dev:
95
-
ports: ...
96
-
sync: ...
84
+
my-dev:
85
+
ports: ...
86
+
sync: ...
97
87
```
98
88
99
89
### Explanation
@@ -111,14 +101,15 @@ In the above `devspace.yaml`, execution order would be as followed:
111
101
You can reference dependencies images via `my-dependency.image` in the `./devspace.yaml`:
0 commit comments