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/app/configuration/upload/page.mdx
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ services:
29
29
|-------|------|-------------|---------|
30
30
| `src` | `string` | Local path relative to the project root (file or directory) | Yes |
31
31
| `dest` | `string` | Absolute destination path on the remote server | Yes |
32
+
| `service` | `string \| string[]` | Service(s) this upload belongs to. When deploying with `--services`, only uploads matching a targeted service are transferred. Uploads without this field are always transferred. | No |
32
33
33
34
`dest`must start with `/`. If `src` is a directory, `dest` is used as the destination directory and the relative structure is preserved.
34
35
@@ -80,6 +81,24 @@ upload:
80
81
File permissions are not preserved (files are created with the server's default umask). If a service requires specific permissions (e.g., `640` for `mosquitto_passwd`), add a `post-deploy` hook that runs `chmod`.
81
82
</Callout>
82
83
84
+
## Scoping uploads to a service
85
+
86
+
When using `--services` to deploy a single service, uploads without a `service` field still run. Use the `service` field to restrict an upload to specific services:
87
+
88
+
```yaml
89
+
upload:
90
+
- src: .dockflow/docker/mosquitto/
91
+
dest: /opt/dockflow/mqtt/
92
+
service: mqtt # only transferred when deploying the mqtt service
93
+
94
+
- src: .dockflow/docker/prometheus.yml
95
+
dest: /opt/dockflow/monitoring/prometheus.yml
96
+
service: [prometheus, grafana] # transferred when either service is targeted
97
+
98
+
- src: .dockflow/shared.conf
99
+
dest: /opt/dockflow/shared.conf # no service field → always transferred
0 commit comments