docs: add escape example for cache_from parameter (#148)

This commit is contained in:
Robert Kaussow 2022-11-01 21:49:13 +01:00 committed by GitHub
parent b302ea6f8c
commit 4c83b8f38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -147,7 +147,20 @@ properties:
required: false
cache_from:
description: Images to consider as cache sources.
description: |
Images to consider as [cache sources](https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-from). To properly work,
commas used in the cache source entries need to be escaped:
```Yaml
- name: Build
image: thegeeklab/drone-docker-buildx:20
settings:
repo: example/repo
cache_from:
# using quotes double-escaping is required
- "type=registry\\\\,ref=example"
- 'type=foo\\,ref=bar'
```
type: list
required: false