From 335f48ab37aacfb42bb013945661794c7360050b Mon Sep 17 00:00:00 2001 From: "Pol (Paula)" Date: Thu, 12 Oct 2023 19:17:58 -0300 Subject: [PATCH] Update cache-from info --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 36740236..7f40cd79 100644 --- a/README.md +++ b/README.md @@ -544,7 +544,8 @@ This option can also be configured on the agent machine using the environment va ### `cache-from` (optional, build only) -A list of images to pull caches from in the format `service:index.docker.io/myorg/myrepo/myapp:tag` before building, ignoring any failures. If multiple images are listed for a service, the first one to successfully pull will be used. Requires docker-compose file version `3.2+`. +A list of images to pull caches from in the format `service:index.docker.io/myorg/myrepo/myapp:tag:group` before building, ignoring any failures. The parameters `service` and `image-repo` are mandatory, without them it won't work. If multiple images are listed for a service, the first one to successfully pull will be used. Adding a grouping tag to the end of a `cache-from` list item allows this plugin to differentiate between groups within which only the first successfully downloaded image should be used (those elements that don't have a group specified will make a separate `:default:` group of its own). This way, not all images need to be downloaded and used as cache, not just the first. +Requires docker-compose file version `3.2+`. ### `separator-cache-from` (optional, build only, single character)