File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
# add mount points from file mount_points.yaml in the build dir
2
2
3
3
{{- define "image mount points" }}
4
- {{- $mountPoints := ($.Files.Get (printf "images/%s/mount-points.yaml" $.ImageName) | fromYaml) }}
5
- {{- range $v := $mountPoints.dirs }}
6
- - add: {{ .ModuleDir }}/tools/mounts/mountdir
4
+ {{- $mountPoints := ($.Files.Get (printf "images/%s/mount-points.yaml" $.ImageName) | fromYaml) }}
5
+ {{- $context := . }}
6
+ {{- range $v := $mountPoints.dirs }}
7
+ - add: {{ $context.ModuleDir }}/tools/mounts/mountdir
7
8
to: {{ $v }}
8
9
owner: 64535
9
10
group: 64535
10
11
stageDependencies:
11
12
install:
12
13
- "**/*"
13
- {{- end }}
14
- {{- range $v := $mountPoints.files }}
15
- - add: /tools/mounts/mountfile
14
+ {{- end }}
15
+ {{- range $v := $mountPoints.files }}
16
+ - add: {{ $context.ModuleDir }} /tools/mounts/mountfile
16
17
to: {{ $v }}
17
18
owner: 64535
18
19
group: 64535
19
20
stageDependencies:
20
21
install:
21
22
- "**/*"
22
- {{- end }}
23
+ {{- end }}
23
24
{{- end }}
You can’t perform that action at this time.
0 commit comments