Skip to content

Commit 944edcf

Browse files
committed
docs: add information on cache-to parameter
1 parent 30f2f61 commit 944edcf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ A list of images to attempt pulling before building in the format `service:CACHE
174174

175175
They will be mapped directly to `cache-from` elements in the build according to the spec so any valid format there should be allowed.
176176

177+
#### `cache-to` (build only, string or array)
178+
179+
A list of export locations to be used to share build cache with future builds in the format `service:CACHE-SPEC` to allow for layer re-use. Unsupported caches are ignored and do not prevent building images.
180+
181+
They will be mapped directly to `cache-to` elements in the build according to the spec so any valid format there should be allowed.
182+
177183
#### `target` (build only)
178184

179185
Allow for intermediate builds as if building with docker's `--target VALUE` options.

0 commit comments

Comments
 (0)