Skip to content

Commit

Permalink
Add cache-from support
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Aug 8, 2019
1 parent 4c957bf commit bb1d420
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,20 @@ class BuildkitePipeline implements ConfigurableEnvironment {
model.get('env', []) << "$name=$value"
}

/**
* Specify a Docker image to pull down to use as a layer cache for building the given service.
*/
void cacheFrom(String service, String image) {
model.get('cache-from', []) << "$service:$image"
}

/**
* Specify a Docker image to pull down to use as a layer cache for building the given service.
*/
void cacheFrom(String service, String image, String tag) {
cacheFrom(service, "$image:$tag")
}

/**
* Add a Docker Compose configuration file to use.
*/
Expand Down

0 comments on commit bb1d420

Please sign in to comment.