14 lines
410 B
Plaintext
14 lines
410 B
Plaintext
[[- if has . "volumes" ]]
|
|
[[- range $volname, $volume := .volumes ]]
|
|
[[- if has $volume "destination" ]]
|
|
volume_mount {
|
|
volume = "[[ $volname ]]"
|
|
destination = "[[ $volume.destination ]]"
|
|
[[- if has $volume "read_only" ]]
|
|
read_only = [[ if $volume.read_only ]]true[[ else ]]false[[ end ]]
|
|
[[- end ]]
|
|
}
|
|
[[- end ]]
|
|
[[- end ]]
|
|
[[- end ]]
|