mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-06-18 08:10:53 +02:00
docs: add escape example for cache_from parameter
This commit is contained in:
parent
b302ea6f8c
commit
300be3eaa5
|
@ -147,7 +147,20 @@ properties:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
cache_from:
|
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
|
type: list
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user