Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 4c83b8f

Browse files
authored
docs: add escape example for cache_from parameter (#148)
1 parent b302ea6 commit 4c83b8f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

_docs/data/data.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,20 @@ properties:
147147
required: false
148148

149149
cache_from:
150-
description: Images to consider as cache sources.
150+
description: |
151+
Images to consider as [cache sources](https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-from). To properly work,
152+
commas used in the cache source entries need to be escaped:
153+
154+
```Yaml
155+
- name: Build
156+
image: thegeeklab/drone-docker-buildx:20
157+
settings:
158+
repo: example/repo
159+
cache_from:
160+
# using quotes double-escaping is required
161+
- "type=registry\\\\,ref=example"
162+
- 'type=foo\\,ref=bar'
163+
```
151164
type: list
152165
required: false
153166

0 commit comments

Comments
 (0)